+ 6

Javascript style

On this last paragraph with id="one", I added multiple style changes when the button ON is clicked, but it does not apply all styles.. https://code.sololearn.com/WevQ2ychFm4L/?ref=app

30th Nov 2019, 11:02 PM
Sanja Malovic
Sanja Malovic - avatar
1 Respuesta
+ 2
The selectors should in css notation, not Javascript camelCase. Try one.style.cssText = "border: 1px dotted; border-radius: 10%; margin: auto;width: 30%;text-align: center;margin-top: 20px;"
1st Dec 2019, 2:28 AM
Calviղ
Calviղ - avatar