jQuery.deselect()


jQuery.deselect()Returns: undefined

Description: Removes selection ranges.

This function will remove any selection that may have been made in the document.

With just one function, all ranges will be removed:

1
$.deselect()

This function is shorthand for the following process:

1
window.getSelection().removeAllRanges()