Reputation: 5190
I'm trying to show all elements with a certain css class, without success. The elements are hidden with display:none;
display:none;
$('myClass').each().show();
This doesn't do anything. How would I need to fix this?
Upvotes: 0
Views: 64
Reputation: 1622
try:
$(".myClass").each(function(){ $(this).show(); });
Reputation: 2920
try this:
$('.myClass').show();
Upvotes: 7