Show hello message on click a button using JQuery.

Rajni.Shekhar
Posted by Rajni.Shekhar under jQuery category on | Points: 40 | Views : 3793
Take a jquery.js file.

<html>
<head>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$(btnClick).click(function(){
alert("Hello! You have clicked me.");
});
});
</script>
</head>
<body>
<input type="button" id="btnClick" value="Click" />
</body>
</html>

Comments or Responses

Login to post response