tags:

views:

2045

answers:

1

Using jQuery, is there a way to select all tag that reference a specific css class, and set the display to "inline"?

example:

<span class="theclass">junk</span>
<span class="theclass">other junk</span>
<span class="theclass">more junk</span>

in .css:

.theclass {
    display: none;
}
+3  A: 
$(".theclass").css("display", "inline");

or maybe

$(".theclass").show();
svinto
$(".theclass").show(); Works!
Christopher Mahan