2、其次你通过这两个事件函数关联。
3、最后写入你想要关联的内容,可达成你需要的效果即可。
有如下的文本框:
<input name="jbxue_form" id="jbxue_form" value="内容" /> <script>//JS选中文本框中内容
document.getElementById("jbxue_form").focus()
document.getElementById("jbxue_form").select()
//jquery选中文本框中内容
$("#jbxue_form").focus()
$("#jbxue_form").select()
</script>