Categories | Question details Back To List | ||
Image in option when addOption is pass with dynamic array Thanks DHTMLx for wonderful code --------------------------------------------------------------------------------- <div id="combo_zone3" style="width:200px; height:30px;"></div> <script> var z=new dhtmlXCombo("combo_zone3","alfa3",200,'checkbox'); z.addOption([[1,'nixon'],[8,"Nixoo"],[3,3333],[4,4444],[5,5555]]); z.enableFilteringMode(true); --------------------------------------------------------------------------------- i am passing dynamic array to addOption function (for eg see above), now how to i pass image src so that each option has its different image? Answer posted by Support on Nov 04, 2008 05:22 You can use next syntax z.addOption([{ value:1,text:'nixon', img_src:'nixon.gif'},{value:8,text:"Nixoo", img_src:'nixoo.gif'},...]); |