jQuery trigger extra paramter
Posted
by fire
on Stack Overflow
See other posts from Stack Overflow
or by fire
Published on 2010-04-26T09:49:25Z
Indexed on
2010/04/26
9:53 UTC
Read the original article
Hit count: 214
jQuery
|JavaScript
According to the jQuery manual you can send extra parameters (as an array) when calling a trigger. I am using this at the moment:
$('#page0').trigger('click', [true]);
How would I pick up whether the paramter has come through or not when using this?
$('ul.pages li a').click(function() {
// Do stuff if true has been passed as an extra parameter
});
© Stack Overflow or respective owner