Hi,
Can someone pls point me to the documentation that provides/explains all possible filter parameters allowed.
Some of the examples I have seen are :first and :last - anymore?
Thanks. Tony.
Hi,
Can someone pls point me to the documentation that provides/explains all possible filter parameters allowed.
Some of the examples I have seen are :first and :last - anymore?
Thanks. Tony.
http://docs.jquery.com/Selectors
Those are just the built in ones, though. You can actually create your own!
So if you wanted to get all <div>
elements that satisfied a certain criteria through a filter, you could do:
$.expr[':'].big = function(e) {
return $(e).width() > 500;
};
$('div:big'); // would only select divs that are over 500 pixels wide