开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜