Create a HTML form for signup. The form should contain form elements for username, password, email, country, gender and hobbies. The username should…
BIT Web Technology I · 2080 · Solved Question with Answer
Create a HTML form for signup. The form should contain form elements for username, password, email, country, gender and hobbies. The username should be at least of 8 length, password should be of 6 length having at least one digit. The username and password should be present. The email should be valid. The country field in dropdown should be selected. The gender and hobbies in radio and checkboxes should also be checked respectively. Now write JavaScript function to validate the form as per mentioned.
