标签:function text 文本 select 选中 orm input bin document
<form id=‘form_test‘>
<input type=‘text‘ />
<input type=‘text‘ />
<input type=‘text‘ />
<input type=‘text‘ />
<input type=‘text‘ />
<input type=‘text‘ />
<input type=‘text‘ />
</form>
<script>
$(document).ready(function(){
/*文本框获得焦点时,自动选中内容*/
$("# form_test input[type=‘text‘]").bind(‘focus‘,function(){
$(this).select();
})
})
</script>
标签:function text 文本 select 选中 orm input bin document
原文地址:http://www.cnblogs.com/paulcode/p/6524993.html