In the example below, I'm trying to figure out how to hide the fieldset if the text within the tags = Groups
<fieldset class=" collapsible">
<legend class="collapse-processed"><a href="#">Groups</a></legend>
I tried this, but, it winds up hiding all the fieldsets, not just this one...
$(this).find('legend').each( function() {
if($(this).text('Groups')) {
$(this).parent().hide();
}
});