Discussions
Categories
Choose a Product
THRUST SERVICES
CORE APPS
CE PRODUCTS
...
Quick Links
POPULAR
HELPFUL TIPS
Groups
My Links
FOR SIGNED IN MEMBERS:
Back to website
Home
Designing Analytics Reports
Dynamically Change Style using javascript
Migrateduser
I have a Text component (set as HTML) with ID=X within a table cell. I have created a new style called MyStyle1 and applied that style to the Text component.
I also have created two other styles called MyStyle2 and MyStyle3 that would show a different background.
Using javascript, how can I change the style from MyStyle1 to MyStyle2 after the report is run?
I tried getElementById('X').className='MyStyle2' but it does not work.
When I first check to see what className is being used using alert(getElementById('X').className), it comes back with something like style_18. Where is it getting that ID?? I would have expected it to say 'MyStyle1';
Find more posts tagged with
Comments
There are no comments yet