passing arguments to custom filter fn in jquery
Posted
by Praveen Prasad
on Stack Overflow
See other posts from Stack Overflow
or by Praveen Prasad
Published on 2010-03-18T18:14:52Z
Indexed on
2010/03/18
18:31 UTC
Read the original article
Hit count: 307
jQuery
1. jQuery.expr[':'].aFilter =
function(elem, index, match){
return true; // Return true/false as per need
};
$('div.red').filter(':aFilter').doSomething();
i want pass some custom arguments to "jQuery.expr[':'].aFilter" function, is it possible to do it
© Stack Overflow or respective owner