Assignment 5: Exploring getElementById (Modify Elements)
Description
document.getElementById(...)
Task
Complete ExploringGetElementById and Photo Gallery located in ExploringGetElementById.zip below. Attach the completed files with +Add Files.
Questions
1) What must follow getElementById() if you want to modify CSS programmatically?
2) What type of input allows the user to select a color?
Exit Homework
HTML
Create a <div> with id output
Create an input range that allows the user to specify a number. oninput call updateOutput()
JavaScript
Create a variable to store the value from the input range.
Create a function updateOutput() that,
retrieves the value of the input range and stores the value in the variable created above.
using getElementById for the div and .innerHTML display the value of the input range in the div.
Hint: Review the last resource below for more help on using .innerHTML