Get selected text in a textbox

后端 未结 3 1193
太阳男子
太阳男子 2020-12-19 02:28

How can I get the character positions of the selected text in an HTML textbox element? window.getSelection() doesn\'t work inside tex

3条回答
  •  鱼传尺愫
    2020-12-19 03:18

    ........

    
    
     
    
    

    Reference: http://www.codetoad.com/javascript_get_selected_text.asp

提交回复
热议问题