[jQuery] Re: Not recognizing multiple classes
What happens if you change: $("p[class='"+whichClass+"']").show();}); to $("p.'"+whichClass+"']").show();}); ? Or what about * selector: http://docs.jquery.com/Selectors/attributeContains#attributevalue //show any straggling, hidden p's with the right class $("p[
[jQuery] Re: Not recognizing multiple classes
var whichClass = $(this).attr("class"); $("p").each(function(){ if($(this).is("."+whichClass)){ $(this).show(); } else{$(t