Hiding a div onmouseout - Javascript jQuery Method and Property

Javascript examples for jQuery Method and Property:mouseout

Description

Hiding a div onmouseout

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.x-git.min.js"></script> 
 </head> //from ww  w .ja v  a2s.c  o  m
 <body> 
  <script>
 function Displayout()
 {
    $("#siteicon").mouseout(function () {
      console.log('sd');
      $("#map_tooltip").hide("slow");
    });
 }

      </script> 
  <div id="siteicon" onmouseout="Displayout();">
    shit 
  </div> 
  <div id="map_tooltip">
    asdad 
  </div>  
 </body>
</html>

Related Tutorials