SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    Also available in Large Si's Avatar
    Join Date
    Sep 2002
    Location
    Walsall, UK
    Posts
    1,911
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Update numeric SELECT dynamically

    I've got a room booking form which has a couple of fields that are linked. When a user selects a room from a <select> it should update the "No of attendees" <select> with options up to the room capacity.

    For example, if I pick one room with a capacity of 15, the "No of attendees" select should have options up to 15. If another room with capacity of 25 is selected, the attendees select should have options upto 25.

    Can anyone help with the javascript for this? I'm struggling!
    Si
    Are you a Photoshop Jedi Master? Prove it!

    Is funky house your bag? You'll love this!

    Voice
    , eyes, ears, body and hands.


  2. #2
    SitePoint Wizard silver trophy
    Join Date
    May 2003
    Posts
    1,843
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You're looking for a 'dependent selects' type script....

    Haven't tried this particular one - but it's from a reliable source.

    Can google for others.
    ::: certified wild guess :::

  3. #3
    Also available in Large Si's Avatar
    Join Date
    Sep 2002
    Location
    Walsall, UK
    Posts
    1,911
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks matey - got it sorted now!
    Si
    Are you a Photoshop Jedi Master? Prove it!

    Is funky house your bag? You'll love this!

    Voice
    , eyes, ears, body and hands.



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
  •