{ "key_pair_value_system": true, "answer_rating_count": "", "question_feedback_html": { "html_star": "", "html_star_feedback": "" }, "answer_average_rating_value": "", "answer_date_js": "2024-09-10T02:13:49-04:00", "answer_date": "2024-09-10 02:13:49", "is_docs_available": "", "is_excel_available": "", "is_pdf_available": "", "count_file_available": 0, "main_page": "student_question_view", "question_id": "9961298", "url": "\/study-help\/questions\/modify-the-code-of-listing-91-to-also-validate-that-9961298", "question_creation_date_js": "2024-09-10T02:13:49-04:00", "question_creation_date": "Sep 10, 2024 02:13 AM", "meta_title": "[Solved] Modify the code of Listing 9.1 to also va | SolutionInn", "meta_description": "Answer of - Modify the code of Listing 9.1 to also validate that the phone field of the form is not blank. Have the program produc | SolutionInn", "meta_keywords": "modify,code,listing,9.1,validate,phone,field,form,blank,program,produce,one", "question_title_h1": "Modify the code of Listing 9.1 to also validate that the phone field of the form is not blank. Have the program produce only one", "question_title": "Modify the code of Listing 9.1 to also validate that the phone", "question_title_for_js_snippet": "Modify the code of Listing 9 1 to also validate that the phone field of the form is not blank Have the program produce only one alert message, saying which field(s) require attention Canceling Default Behavior function checkform() document getElementById( form1 ) onsubmit function() var allowSubmit true if( document getElementById( user ) value ) alert( Name field cannot be blank ) allowSubmit false if(allowSubmit) alert( Data OK submitting form ) return allowSubmit window onload checkform Name Required field Phone Optional field ", "question_description": "
Modify the code of Listing 9.1 to also validate that the phone field of the form is not blank. Have the program produce only one alert message, saying which field(s) require attention.<\/p>