Answered step by step
Verified Expert Solution
Question
1 Approved Answer
1 1 1 5 ? 2 2 , 3 : 5 7 PM Midterm Exam Question 4 Not yet answered Marked out of 8 .
: PM
Midterm 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 alphabets
The password is at least characters with capital, 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.
ralidateinputs
Name can't be blank";
jelse ifnamematch
Name must contain only alphabets";
else if passwordmat
null
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started