Javascript examples for jQuery Method and Property:mouseleave
Run function when the mouse pointer leaves the HTML element
<!DOCTYPE html> <html> <head> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <script> $(document).ready(function(){ $("#p1").mouseleave(function(){ console.log("Bye! You now leave p1!"); });/*from w w w. jav a 2 s . c om*/ }); </script> </head> <body> <p id="p1">This is a paragraph.</p> </body> </html>