I have a problem, and I made this test code to show you my problem.
- HTML code: https://i.stack.imgur.com/7qlZx.png
- Javascript code: https://i.stack.imgur.com/DYvuq.png
What I want to do is to change the styles of the id. But for some reason it doesn’t work.
I don’t know what’s happening and I really need your help. Thanks.
In your original code you are incorrectly referring to the JavaScript properties as methods…
Corrected…