Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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
image text in transcribed
image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Modern Database Management

Authors: Jeffrey A. Hoffer Fred R. McFadden

9th Edition

ISBN: B01JXPZ7AK, 9780805360479

More Books

Students also viewed these Databases questions