I want to keep the text selection when the textarea loses the focus.
For Internet Explorer and without any jQuery.
I want to keep the text selection when the textarea loses the focus.
For Internet Explorer and without any jQuery.
If the selection needs to be visible only when the textarea has the focus, you could store the selected start and end, at onblur
and at the next onfocus
set it again.