Select option

Hello,



How can I select a option ID from the list?

So when I ask to show ID “36”, he must show product2.



var product=new dhtmlXCombo(“product”,“product”,50);

product.addOption([[37,“product1”],[36,“product2”],[1,“product3”]]);

product.enableFilteringMode(true);



The same idea as:





product3

product3

product2



You can use setComboValue method

product.addOption([[37,“product1”],[36,“product2”],[1,“product3”]]);
product.setComboValue(“36”);