Question: Fill the validateForm function to check that the phone number contains a number (use the isNaN function) and that the user name is less than
CHALLENGE7.4.1: Form validatiorn Reset Fill the validateForm function to check that the phone number contains a number (use the isNaN function) and that the user name is less than 11 characters long Display 'Phone number is invalid and/or User name is invalid' in the console log if the check does not pass. Use the preventDefault function to avoid submiting the form when the inputs are invalid HTML JavaScript 1 kfors id-"userForn" action-"https://learn.zybooks.com nethod POST 3 5 kinput type "submit" id-"subnitForm"s Klabel for-"userNane">Usernane:Kinput type-"text id-"userNane xbry Check Try again LN41: Form validation Reset ill the validateForm function to check that the phone nu ame is less than 11 characters long. Display 'Phone number is invalid" and/or "User name is invalid' in the console log if the heck does not pass. Use the preventDefault function to avoid submitting the form when the inputs are invalid r contains a number (use the isNaN function) and that the user 12 Check Try again
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
