Question: 1 / 2 5 / 2 2 , 8 : 1 2 AM CENG 4 2 0 Final Exam Question 1 5 Not yet answered
: AM
CENG Final Exam
Question
Not yet answered
Marked out of
Complete the code such that it validates the inputs on form submit as follows:
The name can not be empty and must contain only lowercase alphabets
The password is at least characters with lowercase and number
If the above restrictions are satisfied, the user will be redirected to the next page, otherwise, the function returns false and an error alert message will be displayed.
function
lelse ifnamematc getElementByld uname
else if passwordmatchi
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
