Hi all,
I am running in to this situation. Basically my site has many templates of css and users can change the color dynamically using jQuery. Now, the way I did it was to use jQuery to modify the css property directly by selecting the classes. However, if users switch to a different template (also dynamically), I insert .css file in but it has NO effect what so ever. The reason is the the css change style=".." for each elements take precedent. How to fix this issue? I am thinking of 2 ways:
- Delete the style="..." at each elememts. But how to do this?
- Get the values directly from within .css file and assign to each elements again as style="..."
Anyone can show me some light on either one? Thanks.