Hello,
Here's the challenge I'm trying to solve:
I'd like, when I click a button on a page, that it causes the style for all elements of a certain class to change. When I click the button again, it should change back. Using getElementsById would be inefficient because I don't want to assign a specific ID to every single element on my page. Here's a simplified example:
[HTML]
<p class="normal">Here is some text that will not change</p>
<p class="changeable">This is text that will be changed</p>
<p class="normal">More text that won't change</p>
<p class="changeable">More text that will be changed</p>
<p class="normal">Again, more unchanging text</p>
<p class="changeable">More text that will be changed</p>
<a href="#" onclick="function to change the style of the p class changeable">
[/HTML]
Any suggestions?
Thanks!