using javascript jquery, stock associated name boxes array structure


using answers , i have means stock name box formed preference another name box. ( ) pulling information an array structure built server-side, stored .js record referenced html page.



now i supplement third name box. i 3 sets information (model, make, options) something (pseudo code):



cars : [honda[accord[lx, dx]], [civic[2dr, hatchback]],
[toyota[camry[blk, red]], [prius[2dr,4dr]]


ex: honda selected, unbroken name box have [accord civic] settle comparison unbroken name box have [lx dx]



how i



1) emanate an array structure reason data? such that



2) i value name box anxiety indispensable values unbroken name box



thanks



edit



i emanate following, nonetheless can't figure out references proceed assistance stock name box



var cars = [
{"makes" : "honda",
"models" : [
{'accord' : ["2dr","4dr"]} ,
{'crv' : ["2dr","hatchback"]} ,
{'pilot': ["base","superduper"] } ]
},
{"makes" :"toyota",
"models" : [
{'prius' : ["green","reallygreen"]} ,
{'camry' : ["sporty","square"]} ,
{'corolla' : ["cheap","superfly"] } ]
} ] ;

alert(cars[0].models[0].accord[0]); ---> 2dr


Comments

Popular posts from this blog

list macos calm editors formula editors

how hibernate @any-related annotations?

why does floated <input> control floated component slip over too distant right ie7, nonetheless firefox?