handle button click - Javascript jQuery

Javascript examples for jQuery:Form Button

Description

handle button click

Demo Code

ResultView the demo in separate window

<html>
   <head> 
      <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script> 
      <script>
$("document").ready(function(){
  $('#aggiungiDomande').on('click',function(){
      console.log("HI");
  });/*from   w w  w. j av a  2s. co  m*/
});

      </script> 
   </head> 
   <body> 
      <button id="aggiungiDomande">Click me</button>
      <br>
      <br>  
   </body>
</html>

Related Tutorials