Side navigation
Ticket #2199: trigger.html
File trigger.html, 0.4 KB (added by weenie, January 21, 2008 09:18AM UTC)
<html>
<head>
<script type="text/javascript" src="jquery.js"></script>
</head>
<body>
<a href="javascript://">aaaa</a>
</body>
</html>
<script type="text/javascript">
$("a").click( function (event, a, b) {
alert(a + "." + b);
// when a normal click fires, a and b are undefined
// for a trigger like below a refers too "foo" and b refers to "bar"
} ).trigger("click", "foo", "bar");
</script>
Download in other formats:
Original Format
File trigger.html, 0.4 KB (added by weenie, January 21, 2008 09:18AM UTC)
<html>
<head>
<script type="text/javascript" src="jquery.js"></script>
</head>
<body>
<a href="javascript://">aaaa</a>
</body>
</html>
<script type="text/javascript">
$("a").click( function (event, a, b) {
alert(a + "." + b);
// when a normal click fires, a and b are undefined
// for a trigger like below a refers too "foo" and b refers to "bar"
} ).trigger("click", "foo", "bar");
</script>