Voici comment j'ai fait mes listes déroulantes de Step 1.
et Step 2 :
var lesElements =[
//Type 0
[],
//Type 1 : Left end
[
["1-0","Make a choice","","0",0],
["1-1","No filler or cabinet","","0",0],
["1-2","1in End Filler pannel Left end","HROK-EFLR-800043","375.00",1],
["1-3","18in Open Shelves Cabinet","HROK-STOC-800022","2000.00",18]
],
//Type 2 : Storage & specialities
[
["2-0","Make a choice","","0",0],
],
//Type 3 : Sink
[
["3-0","Make a choice","","0",0],
["3-1","15in Sink Base Cabinet 1 Door Left Hinges","HROK-SB-800057","2750.00",15]
],
//Type 4 : Grill
[
["4-0","Make a choice","","0",0],
["4-1","15in Grill Base Cabinet 1 door Left hinges","HROK-GR-800059","2750.00",15]
],
//Type 5 : Appliances
[
["5-0","Make a choice","","0",0],
["5-1","18in Appliance Cabinet","HROK-APP-800070","1000.00",18]
],
//Type 6 : Filler
[
["6-0","Make a choice","","0",0],
["6-1","2in Linear Filler","HROK-LFLR-800046","275.00",2],
["6-2","4in Linear Filler","HROK-LFLR-800047","275.00",4],
],
//Type 7 : Ambience
[
["7-0","Make a choice","","0",0],
["7-1","4in Linear LED Lighting module","HROK-LEDL-800036","2000.00",4],
["7-2","4in Linear LED Lighting module for electrical box","HROK-LEDL-800037","2000.00",4]
],
//Type 8 : Right end
[
["8-0","Make a choice","","0",0],
["8-1","No filler or cabinet","","0",0],
["8-2","1in End Filler pannel Right end","HROK-EFLR-800044","375.00",1],
["8-3","18in Open Shelves Cabinet Open Facade & Right end","HROK-STOC-800023","2000.00",18]
],
//Type 9 : Corner Cabinet
[
["9-0","Make a choice","","0",0],
["9-1","46in Corner Storage Cabinet 1 door Left Hinges","HROK-STC-800026","3625.00","46",31],
["9-2","46in Corner Storage Cabinet 1 door Right Hinges","HROK-STC-800027","3625.00","31",46],
["9-3","90° Corner Filler cabinet Right end","HROK-CFLR-800045","1750.00","31",31]
]
];