Handle mouse up event
Description
The following code shows how to handle mouse up event.
Example
<html>
<head>
<script
src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {<!--from w ww .j a va 2s . c o m-->
$("div").mouseup(function() {
$(this).append('<span style="color:#F00;">Mouse up.</span>');
}).mousedown(function() {
$(this).append('<span style="color:#00F;">Mouse down.</span>');
});
});
</script>
</head>
<body>
<div>java 2 s .com</div>
</body>
</html>