<!DOCTYPE html>
<html lang="en-US">
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> </head>
<body>
<h1>jQuery mouseup() Method</h1>
<p>Press and release Me.</p>
<button>Trigger mouseup Event</button>
<script>
$(document).ready(function(){
$("p").mouseup(function(){
alert("Paragraph is pressed and released.");
});
$("button").click(function(){
$("p").mouseup();
});
});
</script> </body>
</html>