Handle mouse up event
Description
The following code shows how to handle mouse up event.
Example
<!DOCTYPE html>
<html>
<head>
<script type='text/javascript'
src='/js/lib/mootools-core-1.4.5-nocompat.js'></script>
<script type='text/javascript'>//<![CDATA[
function nextStep(buttonIndex){<!-- ww w. j a v a2 s . c om-->
$("#button1 .ui-btn-text").text("Example4");
$("#button2 .ui-btn-text").text("Example5");
$("#button3 .ui-btn-text").text("Example6");
}
//]]>
</script>
</head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
<link rel="stylesheet"
href="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.min.css" />
<script src="http://code.jquery.com/jquery-1.8.2.min.js"></script>
<script
src="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.min.js"></script>
</head>
<body>
<a href="#" data-role="button" onmouseup="nextStep(1)" id="button1">Example1</a>
<a href="#" data-role="button" onmouseup="nextStep(2)" id="button2">Example2</a>
<a href="#" data-role="button" onmouseup="nextStep(3)" id="button3">Example3</a>
</body>
</html>