<td>
<input type=text name="iphone" onfocus="javascript:this.form.iphone.value=this.form.iphone.name"></td>
<td><input type=text name="address" onfocus="javascript:this.form.address.value=this.form.address.name"></td>
<input type=text name="iphone" onfocus="javascript:this.form.iphone.value=this.form.iphone.name"></td>
<td><input type=text name="address" onfocus="javascript:this.form.address.value=this.form.address.name"></td>
解决方案 »
- 如何用 谷歌 api 把英文翻译成中文 ?
- Extjs的Tab中grid的自动宽度问题
- <script>脚本标签可以加载的文件后缀类型有哪些?
- HTML如何在内容里面把\N换成<br>
- 请教 csdn 短消息提示
- select 使用onchange()事件后 提交后显示不是一个有效的function
- EasyUI问题Accordion怎么动态生成
- ■■■超难问题:如何屏蔽弹出窗口的关闭按钮?■■■
- javascript中,去掉字符串空格的函数是哪个,急急急!
- 求大神指点些焦点图问题?
- javascrip如何传递有" \ "的参数?
- 请问在javascript中用什么函数可以在一个字符串中选取一部分字符串的?
<form >
<td>
<input type=text name="iphone" onfocus="javascript:this.form.iphone.value=this.form.iphone.name"></td>
<td><input type=text name="address" onfocus="javascript:this.form.address.value=this.form.address.name"></td>
</form>
存在多个表单时
<form name="form1">
<td>
<input type=text name="iphone" onfocus="javascript:document.form1.iphone.value=document.form1.iphone.name"></td>
<td><input type=text name="address" onfocus="javascript:document.form1.address.value=document.form1.address.name"></td>
</form>