Cursos
Iniciar sesiónComenzar a aprender IA
Cursos
Iniciar sesiónComenzar a aprender IA
+ 4

Is it possible to add a property to a pseudo-element via JS?

I need that when I click on the button, its pseudo-element icon disappears and another appears, but without libraries.

cssjavascriptpropertiespseudo-element
5th Jan 2020, 5:22 PM
Anna/Аня
Anna/Аня - avatar
2 Respuestas
+ 6
Have you tried this: https://www.google.com/url?sa=t&source=web&rct=j&url=https://stackoverflow.com/questions/4481485/changing-css-pseudo-element-styles-via-javascript&ved=2ahUKEwiUu87xgO3mAhWH2BQKHQvSBygQFjAAegQIBhAB&usg=AOvVaw3-ECn4D2fIBNK8RG2fNPvP
5th Jan 2020, 5:42 PM
Aymane Boukrouh
Aymane Boukrouh - avatar
+ 3
Aymane Boukrouh [INACTIVE] thanks
5th Jan 2020, 5:46 PM
Anna/Аня
Anna/Аня - avatar

¿Tienes a menudo preguntas como esta?

Aprende gratis de forma más eficaz

  • Introducción a Python

    7,1M de estudiantes

  • Introducción a Java

    4,7M de estudiantes

  • Introducción a C

    1,5M de estudiantes

  • Introducción a HTML

    7,5M de estudiantes

Ver todos los cursos
En tendencia hoy
What kind of questions do companies ask in Data Analyst interviews (including Python, SQL, Power BI, and Excel)?
1 Votes
??
1 Votes
Give some simple practice questions in C
0 Votes
How many program that you've made even a smaal project are good?
0 Votes
Hello guys,
1 Votes
Help me
1 Votes
Did sololearn helped you to get easier a job?
1 Votes
Programming
0 Votes
Ошибка в приложении Sololearn
0 Votes
how do they use javascript
0 Votes