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>
Below you will see some snippets (fragement) of HTML form. Fill in the body of the JavaScript function changeColor so th
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am