ambiera logo

Ambiera Forum

Discussions, Help and Support.

folder icon Ambiera Forum > RocketCake
forum topic indicator Turn off span in divs
person icon
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.

person icon
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?


Create reply:










 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


icon_holyicon_cryicon_devilicon_lookicon_grinicon_kissicon_monkeyicon_hmpf
icon_sadicon_happyicon_smileicon_uhicon_blink   






Copyright© Ambiera e.U. all rights reserved.
Contact | Imprint | Products | Privacy Policy | Terms and Conditions |