www.webdeveloper.com
Results 1 to 3 of 3

Thread: select box

  1. #1
    Join Date
    Dec 2005
    Location
    Bucharest, Romania
    Posts
    21

    select box

    Hi

    is it possible to give an option in a select box 2 values?

    <select name="transation">
    <option value="value1">car</option>
    </select>

    I have a java, that on submit it outputs someting in an input box based on value1, and I want to output something else in another imput box based on another value of the same option...

    is it possible to store 2 values to the same option?

  2. #2
    Join Date
    Mar 2005
    Location
    CA
    Posts
    323
    No.

    But what you can do is use the value ("value1") to decipher what to do with it. Like:
    Code:
    if (formboxvaluevariable == "value1")
    { 
     //DO STUFF HERE
    }
    and in that DO STUFF HERE area, just have the code affect multiple entry boxes.
    -Anthony

  3. #3
    Join Date
    Dec 2005
    Location
    Bucharest, Romania
    Posts
    21
    thanks for the ideea. it works

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles