Prev Demo
jQuery
>
.Mouseleave() - Attach Mouse Leave Event To Element
Next Demo
Write code here
J
|
B
|
A
<!DOCTYPE html> <html> <head> <title>Demo</title> <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script> </head> <body> <p>This is the Normal area.</p> <div id="spanMouseDownUp" style="background: green; color: White; padding: 10px;"> Try to bring your mouse here </div> <script> $("#spanMouseDownUp").mouseleave(function () { $(this).html("Mouse left this area"); }); </script> </body> </html>
Note: We DO NOT save your trial code in our database.
Output