Javascript examples for jQuery:Form Button
Select button and add click event
<html> <head> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script> </head>/*from ww w .ja v a 2 s . c o m*/ <body> <button id="check">Click on me to check if jquery is working ....!</button> <script type="text/javascript"> $("#check").click(function(){ console.log("yep, jquery is working"); }); </script> </body> </html>