Adding a jQuery Click handler for id=":0.my" - Javascript jQuery

Javascript examples for jQuery:Mouse Event

Description

Adding a jQuery Click handler for id=":0.my"

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://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> 
      <script type="text/javascript">
    $(window).load(function(){//from   ww  w.  jav a  2 s.c  om
$("#\\:0\\.my").click(function () {
         console.log('Clicked');
     }
 );
    });

      </script> 
   </head> 
   <body> 
      <div id=":0.my">
         Click me
      </div>  
   </body>
</html>

Related Tutorials