Shooting event when text is canceled or highlighted

jQuery has a "selected" event. But is there an event that fires when no text is selected?

+6
source share
1 answer

I don’t know about any unselected event, but there are probably only a few events that will allow you to deselect the text, so you can probably listen to blur, mousedown and keydown.

+1
source

Source: https://habr.com/ru/post/902699/


All Articles