<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312" /></head><body><form><input type="text" onChange="document.my.elements[0].value=this.value;" /></form><form name="my"><input type="text" onChange="document.forms[0].elements[0].value=this.value;" /></form><form name="my"><input type="text" onchange="document.forms[0].elements[0].value=this.value;" /></form></body></html>
1 回答
淡雅的默
TA贡献102条经验 获得超139个赞
<!DOCTYPE html >
<html>
<head>
<title>new document</title>
<meta charset="utf-8"/>
</head>
<style>
</style>
<body>
<div>
<input id="inp" type="text" value="111">
<input type="text" value="">
<input type="text" value="">
</div>
<script src="../../index/js/jquery.js"></script>
<script>
$(function(){
$("input").click(function(){
$(this).val($("#inp").val())
})
})
</script>
</body>
</html>添加回答
举报
0/150
提交
取消
