problem with Chrome form handling: input onfocus=“this.select()”

后端 未结 10 1200
猫巷女王i
猫巷女王i 2020-12-14 07:56

I\'m using the following HTML code to autoselect some text in a form field when a user clicks on the field:



        
10条回答
  •  情书的邮戳
    2020-12-14 07:59

    Instead of binding to onfocus event you must bind this action into onclick event and it will work as you wanted.

    
    

提交回复
热议问题