Logo

Create an HTML form with fields name, email, country, gender. Make name and email textbox type, country select box and gender radio button. Now write…

2025 · Solved Question with Answer

Create an HTML form with fields name, email, country, gender. Make name and email textbox type, country select box and gender radio button. Now write a JavaScript code to validate form with following details to validate form with following details.

a. Name must contain only alphabets and space and must be 8 character.

b. Email should be valid.

c. Gender must be checked.

d. At least one country must be selected.

Solution

Please login to view the answer.