Skip to main content

Bug Tracker

Side navigation

Ticket #2199: trigger.html

File trigger.html, 0.4 KB (added by weenie, January 21, 2008 09:18AM UTC)
		<script type="text/javascript" src="jquery.js"></script>

		<a href="javascript://">aaaa</a>

<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");

Download in other formats:

Original Format