ImmuneEntity
Sponsor
I'm fairly new to this whole web development stuff, but does anyone know how I can change the display of a div class with javascript?
For example...
I want to be able to say something like:
Is there any way to do this? I've looked all over online but I can't figure anything out. I do know how to access individual divs from their ID, but in this case I have a whole set of divs that I want to change all at once, not one at a time.
For example...
Code:
Â
<div class="monkey">
Some random text.
</div>
Â
<div class="monkey">
Some more random text.
</div>
Â
<div class="monkey">
Even more random text.
</div>
Â
I want to be able to say something like:
Code:
monkey.style.display="none"
Is there any way to do this? I've looked all over online but I can't figure anything out. I do know how to access individual divs from their ID, but in this case I have a whole set of divs that I want to change all at once, not one at a time.