Steals click from children - Javascript jQuery

Javascript examples for jQuery:Mouse Event

Description

Steals click from children

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.4.3.min.js"></script> 
      <script type="text/javascript">
    $(window).load(function(){/* www. j  ava 2  s. co m*/
$("h3").click(function(){ $(this).slideUp(); });
    });

      </script> 
   </head> 
   <body> 
      <h3>
          some text 
         <a href="http://google.com">google</a> 
      </h3>  
   </body>
</html>

Related Tutorials