 g4hdu Registered User |
Quote
|
2024-10-05 21:06:48 |
|
Is there a way to either turn off the creation of <span> or the ability to add an extra class name.
I want to add or remove classes on text with jQuery but the text colour is in the span. I could use !important to override but that is very bad practice.
I might have to fudge with jQuery and child elements of the div.
|
 niko Moderator |
Quote
|
2024-10-06 07:29:37 |
|
If you use the external css option, the spans get grouped by their applied style and will have classes assigned to them, not sure if that helps. Not sure what you want to do exactly.. but if you are trying to dynamically adjust the DOM tree, you could maybe also just take out the inner text of the span and put it into a div instead?
|