I want to ask quick question, i want to make a select drop down that when i choose one of the options the values of the other select drop down change …
let’s say i have select drop down called model that has the following
- Acura
- Aston martin
- Audi
I want when i choose (let’s say ) Audi, in the type select drop down i find Audi type’s only
- A3
- A5
- A4
I don’t want to use AJAX calls, i just want to use javascript or jquery to filter the data
thanks guys
Like Shomz said,
Assuming the dropdowns look like this:
The javascript would look like this:
Notice that the Models start at index 1 and not 0, because the first option is a blank Select Model option.