Assuming I have this array:
Array(
[0] => Array(
[Brand] => 'Toyota',
[Model] => 'Camry',
[Color] => 'Red',
[Year] => 2002
)
[1] => Array(
[brand] => 'Nissan',
[Model] => 'Skyline',
[Color] => 'White',
[Year] => 2005
)
[2] => Array(
[Brand] => 'Honda',
[Model] => 'Civic',
[Color] => 'Green',
[Year] => 2000
) )
and then inside a drop down list I have the "keys" Brand + Model + Color + Year
Question: how can I populate another drop down list using JQuery(AJAX), with the "values" when I click on one key?
Example: When I click on Model, I want to populate another drop down list with the values Camry + Skyline + Civic, and if I click Color, pupulates with Red + White + Green and so on
Cheers!