Find out the registered methods for OnClick event - Javascript jQuery

Javascript examples for jQuery:Mouse Event

Description

Find out the registered methods for OnClick event

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
  <script type="text/javascript" src="https://code.jquery.com/jquery-1.8.3.js"></script> 
  <script type="text/javascript">
    $(function(){//from w  w  w. j  a  va2s.  co  m
$(".a").on('click', function() {
    console.log('1')
});

$(".a").on('click', function() {
    console.log('2')
});
console.log($._data($(".a")[0], "events"));
    });

      </script> 
 </head> 
 <body> 
  <input class="a">  
 </body>
</html>

Related Tutorials