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 discuss@jquery.com http://jquery.com/discuss/