Categories | Question details Back To List | ||
how to set default option for a combo box. I want a default option set from the list of options. In a regular select object this is done w/ the selected attribute of the option tag. So instead of a blank line showing when the combo box is built I want a default option listed there. Answer posted by dhtmlx support on Sep 30, 2008 08:18 Probably, you have got the answer by e-mail, but...
In case of initialization from html select you can use "selected": <option value="... "
selected>...</option>
If combo is initialized from xml, you should set
"selected" attribute with "1" as a value:
<option value="..."
selected="1">...</option> |