0

How to change multiple CSS tags with JS

This can change the CSS via JS in HTML, <button onclick=' "document.getElementById("Test").style.color = "blue" '>, but my question is how can I add more then just one CSS codes with JS?

30th Mar 2020, 1:49 AM
Danial Azadpour
Danial Azadpour - avatar
4 Respuestas
+ 3
Danial Azadpour here is a little example I just created but there are other ways to accomplish this https://code.sololearn.com/Wt9vn4a9C0cM/?ref=app
30th Mar 2020, 2:52 AM
BroFar
BroFar - avatar
+ 2
Danial Azadpour Добро пожаловать you are welcome
31st Mar 2020, 10:33 PM
BroFar
BroFar - avatar
+ 1
Царь СОБАКА - Догго | можешь точная показать как?
30th Mar 2020, 4:46 AM
Danial Azadpour
Danial Azadpour - avatar
+ 1
BroFar thank you
31st Mar 2020, 10:27 PM
Danial Azadpour
Danial Azadpour - avatar