Onchange function help

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ALT75
    New Member
    • Oct 2008
    • 1

    Onchange function help

    Hi all,
    I'm after some guidance for a friend of a friend so to speak, JavaScript isn't my thing so i can't help but i'm hoping someone can. The email i recieved is as follows;

    I have a drop down list and need to know where to put the function, along with what variable to load.

    Here’s the data base:
    Shcema=quote-system
    Tables=Manufact urer
    Model
    Spec
    Extras
    URL.Param variables= Manufacturer

    Model
    Spec
    Extras

    So, the first box contains all the manufacturers, second box model, third spec, forth extras. When a user selects, for example, Honda, the first box will execute the onchange function and load the variable into the second box (model), so the user can then select the corresponding model for Honda, then, the second box executes the onchange and loads the spec of selected model into the third drop down box, etc etc.

    So here’s the first box’s code:
    Code:
    <select name="make 2" id="make 2">
          <option value="--please select--">--please select--</option>
          <cfoutput query="rsManufacturer">
            <option value="#rsManufacturer.manufacturer#">#rsManufacturer.manufacturer#</option>
    
          </cfoutput>
        </select>
    But would also need to carry the variables across into the second and third boxes etc.

    Can any one offer some help?
    Thanks in advance.
  • labmonkey111
    New Member
    • Sep 2008
    • 44

    #2
    This site should be helpful in figuring it out http://www.mattkruse.com/javascript/dynamicoptionlist/.

    Comment

    Working...