
Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN: 9780133594140
Author: James Kurose, Keith Ross
Publisher: PEARSON
expand_more
expand_more
format_list_bulleted
Question
I need help with this JavaScript code.
-
- Create a basic form that fits the theme for your website. This can be a contact form or some form for ordering products.
- The form must contain the following elements: w3School Reference (Make sure you add your id's)
- Two fields to accept text
- Two radio buttons
- Three checkboxes that have some type of numerical value
- One combo box that contains 2 items
- Two buttons for Cancel and Submit
- The form must contain the following elements: w3School Reference (Make sure you add your id's)
- Create a basic form that fits the theme for your website. This can be a contact form or some form for ordering products.
- Create a new JS file and name it validationForm.js, place the new js file into your scripts folder. Utilize the proper techniques to add the new js file to your Html code. JavaScipt:
- Use javascript to grab the information from the form, some fields can be optional but the user must enter a value in at least two text fields before pressing the submit button. (Hint: Event Listeners)
- Create a function to check if both text fields are not empty, the function should return a boolean value. If the value returned was false, present an alert with a proper message to enter the correct value in the field. Set the focus on the text box.
- Create a function that handles some type of mathematic problem and returns a value.
- If the user entered in all the required fields, console out any information that is relevant to what they selected to the console along with the answer to the math equation when they press the submit button. This will show that you know how to grab information from the form fields and present it in any future projects.
- Feel free to create any extra variables necessary to accomplish your assignment. Make sure you leave comments. I like to use comments to describe what the line of code does below when it is executed. Reach out to your instructor if you have any questions.
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution
Trending nowThis is a popular solution!
Step by stepSolved in 2 steps with 1 images

Knowledge Booster
Similar questions
- Create a lottery game application. Generate three random numbers, each between 0 and 9. • Allow the user to guess three numbers.• Compare each of the user’s guesses to the three random numbers and display a message that includes the user’s guess, the randomly determined three-digit numberarrow_forwardWhich of the following can be used to express value in the outline-width property outline-width: value;? O a. dashed O b. thick O c. dotted O d. double 4arrow_forwardA blogging website wants users to enroll to get access to the blogs.The figure above shows the form layout for enrollment. Develop a Java WindowBuilder Application to implement this form. Add a Button called "Enroll" at the bottom. When the user clicks this button, the information entered by the user should be displayed in the box called Enrollment information. All the information user entered should be displayed along with their selections indicated by theCheckboxes and Radio Buttons under their proper headings (Interests, Communication Preference, How referred) Example Output:Name: xxxxxxxxxxxxEmail: aaa@bbb.comPhone: 123-456-7890City: zzzzzzzzzzzState: TX Interests Communication Preference How ReferredElectronics email WebsiteTechnologyTravelShoppingarrow_forward
- Form Validation for jscript. This is the requirement. I just need the code and attached to my jscode. Payment Information Validation Validate the customer’s payment information as follows: Expiry Date (Month) Required field Expiry Date Valid expiry date to ensure the card being used has not expired Card Number Required field, Valid Card Number NOTE: regarding the expiry date, you MUST use the date object to ensure that your date check is dynamic. here is the given html code. <li> <label for="month">Expiry Date</label> <select id="month" name="month"> <option>- Month -</option> <option value="1">January</option> <option value="2">February</option> <option…arrow_forwardmy code # Initialize the required CS credits earned earned_credit_hours = 0 # Print the header print("--------------------------------") print(" UIC CS Track") print("--------------------------------\n") # QUESTION 1: Are you a CS major? major_answer = input("QUESTION 1\nAre you a CS major? (Yes or No): ").upper() if major_answer == "YES": # QUESTION 2: Have you taken ENGR100? engr100_answer = input("\nQUESTION 2\nHave you taken ENGR100? (Yes or No): ").upper() # QUESTION 3: Have you taken CS111 and CS112? cs111_answer = input("\nQUESTION 3\nHave you taken CS111? (Yes or No): ").upper() # Check if CS111 is taken if cs111_answer == "YES": earned_credit_hours += 3 print("\nQUESTION 4") cs141_answer = input("Have you taken CS141? (Yes or No): ").upper() if cs141_answer == "YES": earned_credit_hours += 3 print("\nQUESTION 5") cs151_answer = input("Have you taken CS151?…arrow_forwardInclude a comment in the code that includes the assignment name, your name, and the date The web site title is Your name Include a header that is Your Name, Calculate Shipping and Handling Include a text box to allow the user to enter the purchase price Include a label for the text box Include a button to allow the user to get the shipping & handling fee Include a JavaScript function to calculate shipping and handling The shipping and handling fee is calculated as follows: If the order total is $25 or less, the fee is $1.50 If the order total is more than $25, the fee is 10% of the order total; use the following formula: S&H Fee = Purchase Price * 0.10 After determining the shipping & handling fee, add it to the purchase price and display the order total in an alert box (include a message such as "The order total is: " with the total)arrow_forward
- Create a WPF application named FirstInitialLastNameW3 Your application should include the following in your Window: Title of Window – Escape the Form Font Family – your choice (readable and not the default) Font Size –15 min 20 max (but not too large to fit into controls) Size – Width 600 – Height - 300 1 Grid with 5 equal columns (Column 1 and Column 3 are dividers) Margin for grid should be 10 on all sides 3 TextBoxes - created in XAML – one in each column centered All 3 textboxes Horizontal Alignment – Center Vertical Alignment – Center Width/Height – 100/50 Name – Descriptive with tbx prefix 3 Labels to identify the 3 textboxes Horizontal Alignment – Center Vertical Alignment – Top Width/Height – 100/50 1 Button Button – created in XAML Name – btnCheck Content – “Check Code” Vertical Alignment – bottom of the middle column Horizontal Alignment - centered Width/Height 100/30 CODE 3 global integer variables Window_Loaded Event Setup a random number…arrow_forwardThere are times as a web developer when you need to interact with different data types and file types. The textbox below represents a Comma-separated values file, which is typically referred to as a CSV file. Username, Identifier, First name, Last name booker12,9012, Rachel,Booker grey07, 2070, Laura, Grey johnson81, 4081, Craig, Johnson jenkins46,9346, Mary, Jenkins smith79,5079, Jamie, Smith Your job is to represent the CSV data using a tabular format in csv_to_table.html. You need to use following HTML elements: 1 x Table element 1 x Caption element 1 x Table Head element () 1 x Table Body element () 4 x Table Header elements 6 x Table Row elements ? x Table Data elements (the number of Table Data elements is up to you to work out!)arrow_forward1. Form Validation (do not use validation plugin) A.Create the following form using html Register With Our Web Site Email Address Re-enter Email Address First Name: Last Name 2-Character State Code 5-Digit Zip Code Jen our List B. write Javascript code to add the following validations 1. All the text boxes should have required field validator Register With Our Web Site Email Address This teld s requared. Re-enter Email Address paanbar pio First Name peanber s po Last Name. penbor s pre 2-Character State Code paanbar s poy 5-Digit Zip Code Thes bold is required. oin our List Resetarrow_forward
arrow_back_ios
arrow_forward_ios
Recommended textbooks for you
- Computer Networking: A Top-Down Approach (7th Edi...Computer EngineeringISBN:9780133594140Author:James Kurose, Keith RossPublisher:PEARSONComputer Organization and Design MIPS Edition, Fi...Computer EngineeringISBN:9780124077263Author:David A. Patterson, John L. HennessyPublisher:Elsevier ScienceNetwork+ Guide to Networks (MindTap Course List)Computer EngineeringISBN:9781337569330Author:Jill West, Tamara Dean, Jean AndrewsPublisher:Cengage Learning
- Concepts of Database ManagementComputer EngineeringISBN:9781337093422Author:Joy L. Starks, Philip J. Pratt, Mary Z. LastPublisher:Cengage LearningPrelude to ProgrammingComputer EngineeringISBN:9780133750423Author:VENIT, StewartPublisher:Pearson EducationSc Business Data Communications and Networking, T...Computer EngineeringISBN:9781119368830Author:FITZGERALDPublisher:WILEY

Computer Networking: A Top-Down Approach (7th Edi...
Computer Engineering
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:PEARSON

Computer Organization and Design MIPS Edition, Fi...
Computer Engineering
ISBN:9780124077263
Author:David A. Patterson, John L. Hennessy
Publisher:Elsevier Science

Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:9781337569330
Author:Jill West, Tamara Dean, Jean Andrews
Publisher:Cengage Learning

Concepts of Database Management
Computer Engineering
ISBN:9781337093422
Author:Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:Cengage Learning

Prelude to Programming
Computer Engineering
ISBN:9780133750423
Author:VENIT, Stewart
Publisher:Pearson Education

Sc Business Data Communications and Networking, T...
Computer Engineering
ISBN:9781119368830
Author:FITZGERALD
Publisher:WILEY