To search for items in this field:
$(':visible, any-selector', this)
$(this).find(':visible, any-selector')
if you want to return true or false:
if($(this).is(':visible, any-selector')){
alert('this is visible, or matches "any-selector"');
}
else{
alert('this is hidden, or doesn\'t match "any-selector"');
}
source
share