sl3dg3
sl3dg3

Reputation: 5190

Show elements with certain css-class

I'm trying to show all elements with a certain css class, without success. The elements are hidden with display:none;

$('myClass').each().show();

This doesn't do anything. How would I need to fix this?

Upvotes: 0

Views: 64

Answers (2)

Mihai Frentiu
Mihai Frentiu

Reputation: 1622

try:

$(".myClass").each(function(){
        $(this).show();
      });

Upvotes: 0

felixsigl
felixsigl

Reputation: 2920

try this:

$('.myClass').show();

Upvotes: 7

Related Questions