JavaScript focus(); select();

JavaScript focus(); select();

<lable for="gPrice">

  <input type="text" value="0.00"  name="gPrice" id="gPrice" />

</lable>

  

var item = document.getElementById('gPrice');
item.focus();
item.select();

  

posted @ 2015-04-29 18:48  蓝天_野菜  阅读(803)  评论(0编辑  收藏  举报