How can select ::before with jQuery

::before is a pseudo-selector, not a dom element. So you can’t select it.

I haven’t tried these methods, but they seem to be the most upvoted workarounds