Sunday, 3 February 2019

jQuery Alert box

<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="jquery-3.3.1.min.js"></script>
<script>
$(document).ready(function(){
$("#btn").click(function(){
alert("you clicked");
});
});
</script>
</head>
 <body>
<button id="btn"> click me</button>
 </body>
</html>

No comments:

Post a Comment

jQuery Show and Hide

<html> <head> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script...