jQuery mouseup() handle mouse up event

Description

jQuery mouseup() handle mouse up event

View in separate window


<!DOCTYPE html>
<html>
<head>
<script 
 src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js">
</script>//  w  w  w  .ja v  a2 s . c o m
<script>
$(document).ready(function(){
  $("div").mouseup(function(){
    $(this).after("<p>Mouse button released.</p>");
  });
 });
</script>
</head>
<body>

<div style="color:red;">Release the mouse 
button over this div element.</div>

</body>
</html>



PreviousNext

Related