JQuery简单演示


JQuery简单演示
 
JQuery简单演示
 

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>课后作业</title>
<script src="jquery-1.9.1.js" type="text/javascript"></script>
<script type="text/javascript">
$().ready(function(e) {
     $("#tijiao").click(function(){
	 alert($(InName).val());
 });
});

$(document).ready(function(e) {
    $("#dhk").click(function(){
	 alert("我敢保证,我是简单的提示框");
	});
});
</script>
</head>

<body>
请输入姓名:<input type="text" id="InName" />
<input type="button" id="tijiao" value="提交" />
<hr />
<input type="button" id="dhk" value="确认对话框" />

</body>
</html>

相关推荐