Bug Tracker

Ticket #2199: trigger.html

File trigger.html, 424 bytes (added by weenie, 15 years ago)
Line 
1<html>
2        <head>
3                <script type="text/javascript" src="jquery.js"></script>
4        </head>
5
6        <body>
7                <a href="javascript://">aaaa</a>
8        </body>
9</html>
10
11<script type="text/javascript">
12$("a").click( function (event, a, b) {
13  alert(a + "." + b);
14  // when a normal click fires, a and b are undefined
15  // for a trigger like below a refers too "foo" and b refers to "bar"
16} ).trigger("click", "foo", "bar");
17</script>