Javascript examples for jQuery Selector:class
Select element with a class with element.className syntax
<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!"); });/*from w w w . ja v a 2 s.c o m*/ }); </script> </head> <body> <a href="#" class="deleteRow">Delete</a> </body> </html>