0

Add style to another query

How do you add and remove a class to another class or query? Example: I want to assign “.hidden” to button on command. .hidden { background-color: transparent; color: transparent; } button { color: black; background-color: white; }

26th May 2022, 7:50 PM
Timmothy Rain
Timmothy Rain - avatar
3 Respuestas
+ 3
26th May 2022, 8:28 PM
Lisa
Lisa - avatar
+ 1
read the linked source. element us the html element, xlaaaList is a method.
26th May 2022, 8:51 PM
Lisa
Lisa - avatar
0
Thank you! What do you put in the element and classlist selectors?
26th May 2022, 8:46 PM
Timmothy Rain
Timmothy Rain - avatar