Ttrigger 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
10:13 UTC
Read the original article
Hit count: 156
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