+ 1

How to change the psuedo element ":before" content property dynamically using JavaScript?

So i have used attr to do so ,but are there better ways and should I include them as well in case attr doesn't works! Any help is appreciated . https://code.sololearn.com/WYfqfFsuHfRz/?ref=app

25th Oct 2020, 11:50 PM
Abhay
Abhay - avatar
1 Respuesta
0
It's not possible to access the pseudo elements using Js. The only thing you can access is their property.
3rd Nov 2020, 3:12 PM
Jack Murimi Kavita
Jack Murimi Kavita - avatar