<!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=utf-8" /><title>无标题文档</title><script type="text/javascript">function change(){var test1 = document.getElementById("test1").value;document.getElementById("test2").value = test1;}function change2(){document.getElementById("test1").value = "9";}</script></head><body><input onchange="change()" type="text" id="test1" /><input type="text" id="test2" /><input type="button" onclick="change2()" id="test3" value="改变" /></body></html>
要求按了按钮后,test2的值也要改变
添加回答
举报
0/150
提交
取消