Question: Note: Include the JavaScript validation on the html pages created in the HTML exercises. 1. On the page load of User Registration keep the focus

Note: Include the JavaScript validation on the html pages created in the HTML exercises. 1. On the page load of User Registration keep the focus or cursor on the 'UserName field. 2. Write a Javascript function on the page submit to validate whether all the mandatory fields are entered or not. 3. Write a function that allows only alphanumeric value in the UserName field. 4. Valldate password length should be 8 and should contain at least one capital letter, one number and one special character(@#$%^&). 5. Write a function to check whether the Gender is selected. Hint: Use getElementByld() method. 6. Write a function to validate the Date Of Birth which should display the alert box when date, month and year selected are not correct. e.g. 31 Feb 2011 is not correct (for the given range of years 1970-2015). 7. Validate the format of the value input in the Email ID field, which should end with @def.com or @def.org or @def.in 8. Write a function that takes the value from the phone field and checks whether the value is of length 10 or not. 9. Write a function that enable the text box for the field 'Other when the 'other option is selected from the Hobbies list box. 10. Write a function that is called on selection of the state field from drop down and returns the corresponding values in the city drop down. Assume dummy values for state and city 11. Validate the Address field which should include only alphabets, number and special characters like comma, space and hyphen.

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!