Select button and add click event - Javascript jQuery

Javascript examples for jQuery:Form Button

Description

Select button and add click event

Demo Code

ResultView the demo in separate window

<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>

Related Tutorials