Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write HTML / JavaScript web page called convertusdtocad.html in assignment 1 folder, that has the following items: a . Two text items labeled as USD

Write HTML/JavaScript web page called convertusdtocad.html in assignment1 folder, that has the following items: a. Two text items labeled as "USD Dollar" and "CAD Dollar", the first (USD dollars) is enabled with id="usd", while the latter is disabled with id="cad" b. One button is named convert. c. Functionality: when the user clicks on the button, a JavaScript function named "convert" will be called to convert the value is entered in the "usd" item to the "cad" item using the current/daily conversion rate. The JavaScript function must be written in a file named currency_convert.js.3. Create form.html and successfully_submitted.html files in assignment1 folder, in form.html you will be creating the form that is shown in Figure 1 below. The form is redirected to successfully_submitted.html once you submit the form using the POST method. All fields must be required. For id, if you choose Yes, a file field must appear in the form. If you choose No, the file field must be removed. For now, you dont need to implement the file field to upload any files. 4. Use the function JavaScript document.getElementById() to show the file field. You may use internal or external JavaScript function. 5. Note: the "name" attribute of both radio buttons should be the same. This is because they are part of the same radio group, and you want to allow only one option to be selected at a time. 6. The HTML file successfully_submitted.html should only have one line: The form data has been successfully submitted.

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

Practical Oracle8I Building Efficient Databases

Authors: Jonathan Lewis

1st Edition

0201715848, 978-0201715842

More Books

Students also viewed these Databases questions