Re: Need a dropdown list that holds the value



On Jun 19, 2:46 pm, VK <schools_r...@xxxxxxxxx> wrote:
On Jun 19, 10:35 pm, Yonih <Yoni.Hir...@xxxxxxxxx> wrote:





Hey Everyone,

I was hoping someone could help me here. I need a way to have a drop
down that when selected it can keep a value and display it below here
is an example.
A drop down list of different shipping methods.

Ground
3day
2day

then a price on the back end associated with each of them
ground = 8
3day = 10
2day = 14

then finally a box under it to display what was chosen so if Ground
was chosen the box below it will show 8

Can anyone help me with this. I can attach what Ive started but as you
can see have now clue what im doing. and its prob all wrong but at
least you might get a understanding.

<select name="selectbox" value="shipping" size="1">
            <option name="ground" value="8.50" >Ground - $8.50</
option>
            <option name="3day" value="10.50" >3-Day - $10.50</option>
                        <option name="2day" value="14.50">2-Day - $14.50</option>
                        <option name="overnight" value="24.00">Overnight - $24.00</option>
          </select><br>

<!-- Display Below -->
<input type="text" value=""  name="shipping"> Has been Selected

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type"
 content="text/html; charset=iso-8859-1">
<title>Demo</title>
</head>
<body>
<form action="">
 <fieldset>
  <legend>Shipping</legend>
   <select name="shippingOptions" onchange="
 this.form.shippingType.value = this.options[this.selectedIndex].text;
 this.form.shippingPrice.value =
this.options[this.selectedIndex].value;
    ">
    <option value="8.50" selected>Ground</option>
    <option value="10.50">3-Day</option>
    <option value="14.50">2-Day</option>
    <option value="24.00">Overnight</option>
   </select>
   <br>
   <input type="text" value=""  name="shippingType">
   <input type="text" value=""  name="shippingPrice">
 </fieldset>
</form>
</body>
</html>- Hide quoted text -

- Show quoted text -

Thank you so much, Ive been going crazy trying to get something to
work.

Your Awesome

Thanks

Yoni
.



Relevant Pages

  • HELP PLEASE! Missing info on invoice
    ... they do display on the screen. ... the Notes field into the detail area rather than the page footer where I did ... FROM (Dealer RIGHT JOIN (Customers RIGHT JOIN ([Shipping Methods] RIGHT JOIN ... Orders.DealerID) RIGHT JOIN ((Contracts INNER JOIN Products ON ...
    (microsoft.public.access.reports)
  • Re: Need a dropdown list that holds the value
    ... down that when selected it can keep a value and display it below here ... <!DOCTYPE html> ...
    (comp.lang.javascript)