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

please print your answers
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

Exercise 1: Consider the following HTML:

Insert Product

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!