Question
*To be completed using NotePad++* This program must use a RegExp statement to test the user input to ensure validation. Example of a RegExp statement:
*To be completed using NotePad++*
This program must use a RegExp statement to test the user input to ensure validation.
Example of a RegExp statement: /(\d+),\1/g;
Imagine a school has instituted a new class registration procedure. Students are required to enter into a text box their course information in the following format:
AAA.111#2222_aa-1234
Example: WEB.110#4101_sp-2017
any letters A-Z any numbers 0-9 ect.
where AAA represents the capitalized department number (example: WEB or GRD)
then a period
111 represents the course number (example: 110 or 115)
then a hash tag
2222 represents the course section number (example: 4101 or 0002)
then an underscore
aa represents the lowercase 2 character semester code (example: sp, su, fa)
then a dash
1234 represents the school year (example: 2017)
Your Web page will ask the user to type their information in a text box. The user will then click a form button named validate. If the format is correct a message will be generated below the button that reads "Correct Format". If the format is incorrect a message will be generated that reads "Incorrect Format".
Your output must appear as text in your Web page. Do NOT use an alert() method for your output.
HINT: use the innerHTML property to accomplish this. Your output must be generated by an external JavaScript (.js) file
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started