OZONE Asylum
Forums
CSS - DOM - XHTML - XML - XSL - XSLT
Using DOM to dynamically add a class to an 'a' tag
This page's ID:
31485
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
I am using a tabbed panel layout (JQuery) and when a tab is clicked 'class="current"' is dynamically added to the 'a' tag. The only trouble is I want to change the default 'current tab' when the page loads so I am hoping I can add 'class="current"' to the tab I require using DOM. I am very new to this so would be very grateful for any direction. I was planning on calling the Javascript code using an 'onload' event. Any help would be gratefully appreciated. Thank you.
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »