Javascript examples for jQuery Method and Property:mouseup
Attach a function to the mouseup event:
<!DOCTYPE html> <html> <head> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <script> $(document).ready(function(){ $("div").mouseup(function(){ $(this).after("<p>Mouse button released.</p>"); });// w w w . ja v a 2 s .c o m }); </script> </head> <body> <div style="color:red;">Release the mouse button over this div element.</div> </body> </html>