<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>
