中国社会阶层划分12级:要让文本框里的字处于选中状态,用javascript怎么写
来源:百度文库 编辑:查人人中国名人网 时间:2024/06/01 03:29:19
就是用鼠标拖选中的那个样子,用javascript怎么写
<input type="text" value="请输入姓名" onfocus="this.select()">
<input type="text" value="请输入姓名" onfocus="this.select()">