Question: please print your answers Exercise 1: Consider the following HTML: Insert Product #description display:none; #email_validation, #id_validation { display:none; ) Name* Email* ID* Institution* Gutech Local

Exercise 1: Consider the following HTML:
Name* Email* IDStd* 139-4533 Institution* GUtech Local University Others More details Submit Cancel Q1) Write a JavaScript function to display the text area only if the checkbox "others" have been selected as institution. The textarea should also disappear if the checkbox "others" is unchecked. Q2) Write a JavaScript function to check if the input of the field email ends with "@gutech.edu.om". The function should display a message "Invalid email" if the format is not respected. Q3) Write another function to check if the id inserted by the user in the filed ID is in the format indicated in the placeholder (3 digits, then hyphen, then four digits) Note: Email validation message should be displayed inside the element with id "email_validation" and id validation message should be displayed in element with id "id_validation
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
