change element css class with js/jquery
please see URL http://backstageweb.net and attached .gifs.
What I want to do here is swap the div class from '.audience_off' to '.audience_on' when the "play" button is clicked ("I set the stage and...[play button]")
I found this reference, which I'm sure contains the answer I'm looking for, except I still don't know precisely how to code it:
I think this is the basis of the code I'm looking for:
I should note my (onclick) button has a class of its own too:
// code examples from above
<button onclick="changeClass()">My Button</button>
Thanks for any help.
<a class="switch" href="#"></a>
I do not know the answer to your query, but I have optimised the color depth of your two GIFs...
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)