Question: Java script what is your favorite ice cream flavor? Chocolate Vanilla Strawberry What is your name? Submit 1. Write the CSS rule that will select
Java script

what is your favorite ice cream flavor?
Chocolate
Vanilla
Strawberry
1. Write the CSS rule that will select all input elements with the type attribute radio 2. Using DOM methods, write the JavaScript code that will select all elements with the class text 3. Using DOM methods, add a click handler to the submit button. When a user clicks on submit, you should display "Hello (name), your favorite flavor is (flavor)" in the paragraph element inside the div with the id result. The name should be the value in the text input and the flavor should be the selected flavor option from the radio inputs. Hint: any elements returned by the DOM methods have access to the same DOM methods as the document object. Hint: The radio input elements have a special property, checked, which tells you whether or not a radio input is selected or not. F4 F5 F6 F7 F8 F9 F10 F11 $ % > 4 & 7 C 5 6 8 9
Vanilla
Strawberry
What is your name?
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
