开发者

How to send the 'ctrl+end' key to <textarea> element so the cursor lands after last character

(send: that is to emulate typing these keys as user would normally do it)

I know this metod element.value = element.value, but I think it might 开发者_JAVA技巧be slow for textareas that have huge amount of data in them, like wikis etc.


Check this SO question: Javascript: Move caret to last character

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜