Page 169 - Computer Software Application TP - Volume 1
P. 169
COMPUTER SOFTWARE APPLICATION - CITS
1 Write a JavaScript program that validates an email input field in a form to ensure it is in a valid email format
(e.g., contains “@” and “.”). Display an error message if the email format is invalid.
2 Create a JavaScript program that implements form validation for a password input field. Validate the password
to ensure it meets certain criteria, such as minimum length and inclusion of special characters. Display an
error message if the password does not meet the criteria.
3 Write a JavaScript program that dynamically adds input fields (e.g., text input, select dropdown) to a form when
a button is clicked.
4 Create a JavaScript program that dynamically removes input fields from a form when a button is clicked, based
on user interaction or condition.
5 Create a JavaScript program that disables a form submit button until all required fields in the form are filled.
Enable the submit button only when all required fields are filled.
154
CITS : IT & ITES - Computer Software Application - Exercise 42