SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast
    Join Date
    Mar 2003
    Location
    LONDON
    Posts
    63
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    onchange="HELP()"

    Basically I am making a site where people submit a form which contains a category field. Because there are so many categories it would be much simpler to put these values into different boxs. E.g. The primary one says Electronics, House and Home, Toys and Games. If a user selects electronics then a secondary select box has: Mobile Phones, Radios, TV's, Computers, then a third box opens up. I hope you understand

    Basically does anybody know of a script already out there?:

    <select name=s1 onchange="HELP()">
    <option value=Hard Drive>Hard Drive
    <option value=DVD Drive>DVD Drive
    <option value=Monitors>Monitors
    </select>

    Thx to every1 who reads this.

    dHs

  2. #2
    Bangarang! Karloff's Avatar
    Join Date
    Mar 2003
    Location
    Manchester, United Kingdom
    Posts
    236
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Have a look at Matt Kruse's website to O'Reilly's book JavaScript here : http://www.mattkruse.com/javascript/dynamicoptionlist/

    The script does exactly what you want/need as far as I understood your description

    Hope that helps,
    Karl


    I'm desperately trying to figure out why Kamikaze pilots wore helmets. - George Carlin


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
  •