if(!jQuery("div").is(":foo")) {
// do stuff...
}
On 11/6/06, Sam Collett <
[EMAIL PROTECTED]> wrote:
jQuery has an 'is' method to see if a current selection matches an
_expression_. There does not seem to be a counter part (not does this
but returns a jQuery object, not a boolean). Perhaps there should be
isNot?
Untested:
jQuery.fn.isNot = function(expr) {
return expr ? jQuery.filter(expr,this).r.length < 0 : true;
}
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/
_______________________________________________ jQuery mailing list [email protected] http://jquery.com/discuss/
