Javascript examples for jQuery Method and Property:mouseover
Getting a div's information when mouse over it
<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>