Question: zy 74 Formvo 0 ?6.XMLHtt L at Rey da L yaz a ss s x Ch Snorr e la aSo ? a4. West X CS25SOW:
zy 74 Formvo 0 ?6.XMLHtt L at Rey da L yaz a ss s x Ch Snorr e la aSo ? a4. West X CS25SOW: X Stud COSecure https/ S0WagstaffSummer2018/chapter/I/section/4 Appi Discret Math2,Four ?laaScrp. T tonal?HTML la aScript?W3CSS Home?Uden y D UVUQUE Tutor zy necks CS 2550. w zyBooks My library> CS 2550 home > 7.4 Form validation E zyBooks catalog Reset Validate that the user age field is between 15 and 120. If valid, set the background of the field to LightGreen and assign true to userAgeValid. Otherwise, set the background to Orange and userAgeValid to false HTML JavaScript 1 var valiocolor LightGreen 2 var invaliocolor "Orange" 3 var userAgeImput document.getElementBy Id("userage") 4 var foraidget document getELementByld"userfore-) 5 var userAgevalld false 7 function userigeCheck(event) /* Your solution goes here*/ 11 : } 13 function foraCheck (event) t 14: if (tuserAgevalld) ( 15 16 1 37 1 13 19 usergrInput.adofventlistener"imput, userAgeChack) 20 forididget.addEventListener( subnit", forsCheck) Check Nex O Type here to search
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
