Select element with a class with element.className syntax - Javascript jQuery Selector

Javascript examples for jQuery Selector:class

Description

Select element with a class with element.className syntax

Demo Code

ResultView the demo in separate window

<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>

Related Tutorials