Hi,
How to add options (like this syntax)
var z=new dhtmlXCombo(“combo_zone3”,“alfa3”,200);
z.addOption([[1,1111],[2,2222],[3,3333],[4,4444],[5,5555]]);
that contain image ?
Currently, I use an external xml file like this one
<?xml version="1.0" ?>
Google
Yahoo
Bing
Wikipedia
I don’t know which syntax to use for adding the img_src and the “selected” attribute…
Any help ???
Stan
Hello,
the values should use the associative array. For example as follows:
combo.addOption([{“value”:1,“text”:“1111”,“img_src”:"…/images/someimage1.gif"},{“value”:2,“text”:“2222”,“img_src”:"…/images/someimage2.gif"},…]);