Using .on() method click event - Javascript jQuery

Javascript examples for jQuery:Mouse Event

Description

Using .on() method click event

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!");
    });/*www.j av a2  s.  co  m*/
});

      </script> 
   </head> 
   <body> 
      <a href="#" class="deleteRow">Delete</a>  
   </body>
</html>

Related Tutorials