给按钮添加jquery单击事件

<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script type="text/javascript" src="js/jquery-1.11.0.js"></script>
		<script type="text/javascript">
			  $(function(){
			  	   $("#a").click(function(){			  	   			 
			  	    alert("xzc");
			  	   });			  			  				  				  	
			  });
			 
		</script>
	</head>
	<body>
		<input type="button" value="sdss" id="a" />
	</body>
</html>

猜你喜欢

转载自blog.csdn.net/gadxiong/article/details/80184746
今日推荐