<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<title></title>
	<script type="text/javascript" src="js/jquery-1.8.3.min.js"></script>
	<script>
		function click_test1() {
			var name2 = "张三";
			alert("我是从数据库来的:" + name2);
			$("#id1").val(name2);
		}
		function click_test2() {
			var name2 = $("#id2").val();
			alert("我要进数据库了:" + name2);
		}
	</script>
</head>
<body>
	这是查询页面<br/> 姓名:
	<input type="text"  />
	<br/>
	<button onclick="click_test1()">查询</button>
	<br/>
	<hr width="100%"> 这是提交页面
	<br/> 姓名:
	<input type="text"  />
	<br/>
	<button onclick="click_test2()">提交</button>
</body>

</html>

相关文章:

  • 2022-12-23
  • 2021-12-23
  • 2021-07-25
  • 2022-02-02
  • 2021-05-18
  • 2022-12-23
  • 2021-09-04
猜你喜欢
  • 2021-06-25
  • 2022-12-23
  • 2022-12-23
  • 2022-03-10
  • 2021-09-01
  • 2021-05-29
  • 2021-12-08
相关资源
相似解决方案