Question: Have the below code in Javascript/HTML. I need help to store the local items in function (onSave), I was able to store username,email and number

Have the below code in Javascript/HTML.

I need help to store the local items in function (onSave), I was able to store username,email and number but need help to store the radioboxes, checkboxes, dropdown and comments as seen in HTML file.

Please help with completing the Javascript

JavaScript Document

function onSave () { // This function allows you to save the variable to the local storage

var user = document.getElementById("Username");

var email = document.getElementById ("Email") ;

var number = document.getElementById ("Number");

localStorage.setItem("Username", user.value);

localStorage.setItem("Email",email.value);

localStorage.setItem("Number",number.value);

---------------------------------------------------------------------------------------------

Contact Us

Contact us

Please enter your Name:

Please enter your E-mail Address:

Please enter your Phone Number:

1.Tell us about your role?

Student

Professor

Employer

None of the above

2. What are you interested in learning about?

University

Work Experience

Student Groups

Volunteer Work

High School

None of the Above

3. What is your preferred contact method?

Contact via Phone

Contact via E-mail

4.What is the best time to contact you?

Any other comments, please leave below:

Click to confirm your not a robot

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!