Question: What's the error? Zy 7.1. Fom validation 8ManSpring2019/chapter/7/section/ zyBooks My library COMP 408: Web Programming home7.4: Form validation zyBooks catalog Help/FAQ Smiti Shakya ACTIVITY7.4.1: Form


What's the error?
Zy 7.1. Fom validation 8ManSpring2019/chapter/7/section/ zyBooks My library COMP 408: Web Programming home7.4: Form validation zyBooks catalog Help/FAQ Smiti Shakya ACTIVITY7.4.1: Form validation. Reset Fill the validateForm function to check that the phone number is 10 characters long 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 preventDcfault function to avoid submitting the form when the inputs are invalid. 7 8 18 Your solution goes here (phonelunber.length 1- 1a) console.1o Phone nunber is invalid") event.preventDefault) return false; (usarNane.langth11) ( 12 14 15 16 17 console.log( "Usernane is invalid) event.preventDefault) return false 19 21 24 recturn true; Try again O Type here to search 11:44 AM 3/11/2019 Zy 7.1. Fom validation https://learn.zybooks.com/zybook/SMSUCOMP108ManSpring2019/chapter/7/section/ zyBooks My library> COMP 408: Web Programming home 7.4: Form validation zyBooks catalog Help/FAQ Smiti Shakya Check Try again Test with phoneNumber.value "111333" and userName.value-"Robert Yours Phone number is invalid X Test with phoneNumber.value 111333" and userName.valueNot a real name" Yours and expected differ. See highlights below. Special charscer legnd Yours Phone number is invalid Phone nunber is invalid Expected Further lesting is suppressed unt live above passes Feedback? Exploring further . Data form validation from MDN How was this section? Provide feedback O Type here to search 11:44 AM 3/1/2019
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
