+ 1

Solo learn web programming playground can not change css property with javascript I tried it I did not work if you have otherway

26th Nov 2020, 8:17 PM
Emmanuel Ezoba
Emmanuel Ezoba - avatar
4 odpowiedzi
+ 1
Emmanuel Ezoba I agree with Eacy , and I also want to say that it is possible. You aren't writing the code properly.
27th Nov 2020, 1:59 AM
Zeke Williams
Zeke Williams - avatar
+ 6
Share your code to get specific help 😉
26th Nov 2020, 9:20 PM
🔥EACY🔥
🔥EACY🔥 - avatar
+ 1
Please share the code here
28th Nov 2020, 8:26 PM
Emmanuel Ezoba
Emmanuel Ezoba - avatar
+ 1
For example, document.getElementById("a").style.background = "red"; On Sololearn, the JavaScript does not run as if the script tag was at the bottom of the body tag. Because of this, you need to place DOM manipulation within the callback for the window loading: window.onload = function() { }
28th Nov 2020, 9:26 PM
Zeke Williams
Zeke Williams - avatar