Javascript examples for jQuery:Mouse Event
Using .on() method click event
<html> <head> <script src="https://code.jquery.com/jquery-2.2.2.min.js"></script> <script> $(document).ready(function(){ $("a.deleteRow").on("click", function(){ console.log("Delete Row!"); });/*www.j av a2 s. co m*/ }); </script> </head> <body> <a href="#" class="deleteRow">Delete</a> </body> </html>