SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast
    Join Date
    Dec 2006
    Posts
    88
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Changing data form dinamically

    I have a drop down field like that where I want user to select price range

    Code HTML4Strict:
    <select name="price_from">
    <option value="%">All</option>
    <option value="0">0 - 100 000</option>
    <option value="100000">100 000 - 200 000</option>
    <option value="200000">200 000 - 300 000</option>
    <option value="300000">300 000 - 500 000</option>
    <option value="500000">500 000 + </option>
    </select>

    I would like also to send another variable price_to so I get second price range.
    It would be hidden something like this depending what user has chosen:
    Code HTML4Strict:
    <input type="hidden" name="price_to" value="200000" />

    How can I add that second variable dynamically and take value depending what value the user selected?

    Thanks.

  2. #2
    SitePoint Enthusiast
    Join Date
    Dec 2006
    Posts
    88
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by salahsoftware View Post
    use getSelectedIndex thru DOM
    Do you have any example?
    If you don't have it I will try to google it.

    Thanks.


Bookmarks

Posting Permissions

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