Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Expanding and Collapsing Accordion Script? Re: Expanding and Collapsing Accordion Script?

#81359
jimmykup
Participant

Hi again,

I’ve almost finished implementing this script into my site.

http://www.iavi.com/index_expand.asp

However, the script currently uses plain text as the toggle for the animation. How can I change it so that instead of swapping in the text "Expand" and "Collapse" whenever the link is clicked, it swaps the class of the element instead?