a select value problem

Discussion in 'Javascript' started by Thad, Feb 18, 2007.

  1. Thad

    Thad Guest

    In the html I have a select option. I am trying to get the result of the
    selection(u5503_qty*5) to print after some text. I am having a problem
    grabbing the value of u5503_qty from the html to use in the javascript. Can
    somebody correct me on this?


    Step 4. How many would you like?<br />
    <select name="u5503_qty" size="1">
    <option label="1" value="1" selected>1</option>
    <option label="2" value="2">2</option>
    <option label="3" value="3">3</option>
    <option label="4" value="4">4</option>
    <option label="5" value="5">5</option>
    </select>
    <br />
    At this point, your charges will be....$
    <script type= "text/javascript">
    var y=5;
    document.write(Number(document.value.u5503_qty)*5);
    </script>
     
    Thad, Feb 18, 2007
    #1
    1. Advertising

  2. Thad

    Thad Guest


    > Why the labels?
    > Mick


    Ignorance...I was thinking that I was needing it. Thank you so much for the
    help and pointing out about the labels.

    Thad
     
    Thad, Feb 18, 2007
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?RGFiYmxlcg==?=

    select gridview row without using select button?

    =?Utf-8?B?RGFiYmxlcg==?=, Mar 3, 2006, in forum: ASP .Net
    Replies:
    5
    Views:
    101,627
    dch31969
    Feb 27, 2009
  2. palmiere
    Replies:
    1
    Views:
    465
    Erwin Moller
    Feb 9, 2004
  3. @sh
    Replies:
    16
    Views:
    192
    Thomas 'PointedEars' Lahn
    Mar 25, 2006
  4. Replies:
    6
    Views:
    220
  5. Matt Kruse
    Replies:
    4
    Views:
    141
    Elegie
    Jan 8, 2007
Loading...

Share This Page