+ 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
1 Resposta
+ 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;"