SitePoint Sponsor |
|
User Tag List
Results 1 to 1 of 1
-
Nov 14, 2007, 16:23 #1
add css class with javascript on click
Hi all, I am working on a site with dropdowns that show/hide content when a link is clicked. I want to visibly show when the dropdown is expanded by styling the link when it is clicked with a background image. I want the change to be reversed when the link is clicked to close the dropdown. I want to use javascript to add/chage a css class name to achieve this when the link is clicked to open or closhe the dropdown. Is this posssible?
The code i am using for the dropdown is here: http://www.dynamicdrive.com/dynamici...edcollapse.htm
All help is much appreciated..
Thanks
JonNew Portfolio coming soon....
Bookmarks