How can I keep a text selection inside the text area?
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.
精彩评论