Need a simple javascript addition to an existing html form
- or -
Post a project like this2749
$$
- Posted:
- Proposals: 2
- Remote
- #1287401
- Awarded
Description
Experience Level: Intermediate
Hi,
I have a simple web form that selects from a list of countries. See countrytester.html attached. I'd like to keep the current functionality and add the logic below.
1. If the customer selects one of these countries:
· United States
· Canada
· Puerto Rico
Then everything works as it does now. No changes. Form submits.
2. If the customer selects any country OTHER THAN these three,
then a hidden appears:
Please choose One:
"Continue Checkout - I know International Shipping costs" <<when clicked, form submits
"Give me an idea of International Shipping Costs"<<when clicked, more info is shown:
More info=
blahblah blah blah, etc.
Please choose one of the three options:
Continue Checkout<<when clicked, form submits
Return to shopping<<link to index.php
Cancel My Order<<link to cancel.php
Please let me know if you have any questions.
thanks,
dave
I have a simple web form that selects from a list of countries. See countrytester.html attached. I'd like to keep the current functionality and add the logic below.
1. If the customer selects one of these countries:
· United States
· Canada
· Puerto Rico
Then everything works as it does now. No changes. Form submits.
2. If the customer selects any country OTHER THAN these three,
then a hidden appears:
Please choose One:
"Continue Checkout - I know International Shipping costs" <<when clicked, form submits
"Give me an idea of International Shipping Costs"<<when clicked, more info is shown:
More info=
blahblah blah blah, etc.
Please choose one of the three options:
Continue Checkout<<when clicked, form submits
Return to shopping<<link to index.php
Cancel My Order<<link to cancel.php
Please let me know if you have any questions.
thanks,
dave
Dave P.
100% (3)Projects Completed
3
Freelancers worked with
5
Projects awarded
38%
Last project
21 Sep 2016
United States
New Proposal
Login to your account and send a proposal now to get this project.
Log inClarification Board Ask a Question
-
There are no clarification messages.
We collect cookies to enable the proper functioning and security of our website, and to enhance your experience. By clicking on 'Accept All Cookies', you consent to the use of these cookies. You can change your 'Cookies Settings' at any time. For more information, please read ourCookie Policy
Cookie Settings
Accept All Cookies