Home
<!DOCTYPE html> <html> <head> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"> </script> <script> $(document).ready(function () { $('#saveBtn').click(function () { alert('Save button clicked'); }); }); </script> </head> <body> <h1>Demo: jQuery click() method</h1> <input type="button" value="Save" id="saveBtn" /> </body> </html>
Result: