is there a contains function?
I looked over the API for the following functionality but couldnt find it. Is there a method already that does this:
jQuery.fn.contains = function(selector){
return typeof $(this).find(selector).get(0) != 'undefined';
}
?
Thanks.