Please see the attached files from W3Schools for more information.
Basically, I want to use a slider in a program on SoloLearn. I have correctly referenced the slider value according to the demo but document.getElementId("foo").value is returning TypeError null. I have the slider and script in separate files like the "split files" example. Why does the same code work in the "same files" example but not when they are split?
This question has been asked and answered many times before. So before posting new question make sure that the question has not been asked using the search bar.