How do i use jQuery for displaying more options in a form?

kaeel

New Member
Let's say you have a form:\[code\]<form> <select name="cars"> <option value="http://stackoverflow.com/questions/15850154/all">All Cars</option> <option value="http://stackoverflow.com/questions/15850154/volvo">Volvo</option> <option value="http://stackoverflow.com/questions/15850154/audi">Audi</option> </select> <select name="volvo_dealers"> <option value="http://stackoverflow.com/questions/15850154/dealer1">Volvo Dealer 1</option> <option value="http://stackoverflow.com/questions/15850154/dealer2">Volvo Dealer 2</option> </select> <select name="audi_dealers"> <option value="http://stackoverflow.com/questions/15850154/dealer1">Audi Dealer 1</option> <option value="http://stackoverflow.com/questions/15850154/dealer2">Audi Dealer 2</option> </select> <input type="submit" value="http://stackoverflow.com/questions/15850154/Submit"></form>\[/code\]However, you only want to display one of the two "dealers" select-options after you have chosen on of Volvo or Audi. The one that will be displayed is of course depending on which of Volvo and Audi was selected in the "cars" select-options.What might be a good approach for this small issue?Rergards,Bill
 
Back
Top