Javascript examples for jQuery:Form Button
handle button click
<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>