I have 3 select tags in my HTML document , and when i select 1st option from the 1st select tag, i want to show some other options in the second select tag which is hidden, but i need to load those options from external file like json. how can i do this ?
for e.x i have this object
var object = {
usa: {
californina: ['san fransisco',
'san diego'
],nevada: ['las vegas',
'reno']
}
}
when i select usa option in the 1st select tag, i want to show the states (california,nevada) in the second select box, and when i choose nevada option i want to show the city(las vegas, reno) in the 3d select tag!
i want all those options to be kept in external json file! how can i load the json file?