• Cursos
  • Compilador de Código
  • Debatir
  • Precios
  • Teams
Menu
+ 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
Mobile number and similarity
0 Votes
Can I import any module in python in this app?
0 Votes
The use of these certificates on LinkedIn
1 Votes
GitHub account connecting issue
3 Votes
photo upload issue in html code
0 Votes
Converter minúsculas em maiúsculas e imprimir
0 Votes
Algorithm to create maze-like grid
2 Votes
Coding issue
2 Votes
Loops and conditions
0 Votes
Alguém Português por aqui?
0 Votes