Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript pesudo element change property values Reply To: pesudo element change property values

#266777
Paulie_D
Moderator

Pseudo-elements can’t be selected by JS as the aren’t in the DOM.

Frankly, I’m not entirely sure what it is you are trying to do but changing the CSS stylesheet would require a regex parse I think.

These things are usually handled by changing classes and affecting the pseudo-elements that way.