Page 1 of 1

Below you will see some snippets (fragement) of HTML form. Fill in the body of the JavaScript function changeColor so th

Posted: Sat Feb 19, 2022 3:22 pm
by answerhappygod
Below you will see some snippets (fragement) of HTML form. Fill
in the body of the JavaScript function changeColor so
that the color of the text “Select below to change the color of
this text “ changes in response to the selection made in the
menu.
<div id="colorText">Select below to change the color of
this text</div>
<select onclick="changeColor()" id = "op">
<option>Red</option>
<option>Green</option>
<option>Blue</option>
</select>
<script type="text/javascript">
function changeColor() {
// Your Answer Goes Here
}
</script>