Getting a div's information when mouse over it - Javascript jQuery Method and Property

Javascript examples for jQuery Method and Property:mouseover

Description

Getting a div's information when mouse over it

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.6.2.js"></script> 
      <script type="text/javascript">
    $(function(){//  w w  w  .ja va 2 s . co  m
$('#test').mouseover(function(){
    var test = $(this)
    console.log(test);
});
    });

      </script> 
   </head> 
   <body> 
      <div id="test">
         Hello world!
      </div>  
   </body>
</html>

Related Tutorials