开发者

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

开发者 https://www.devze.com 2023-03-09 19:41 出处:网络
(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 amo

(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

精彩评论

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