[removed] Scroll to selection after using textarea.setSelectionRange in Chrome

前端 未结 8 612
离开以前
离开以前 2020-12-31 05:05

A javascript function selects a certain word in a textarea using .setSelectionRange(). In Firefox, the textarea automatically scrolls down to show the selected text. In Chro

8条回答
  •  无人及你
    2020-12-31 05:37

    Complete code for Chrome

     
    

提交回复
热议问题