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

后端 未结 10 1208
猫巷女王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 08:14

    This question was posted five years ago, but with HTML5, you can make this feature with the placeholder attribute.

    
    

提交回复
热议问题