157
rated 0 times
[
159]
[
2]
/ answers: 1 / hits: 86803
/ 13 Years ago, sun, february 5, 2012, 12:00:00
Is there a way to change an attribute of a CSS class using javascript?
<style type=text/css>
.fool select {
display: block;
}
</style>
<p class=fool>
<select id=a onchange=changeCSS()> ... </select>
<select id=b > ... </select>
<select id=c > ... </select>
</p>
I want to change display:block to display:none for ALL <select>
elements after a user call function changeCSS().
It looks simple but I can't find a way to do this...
More From » html