[Combo] Select Text

When a user clicks on the select, I want it to automatically select the text.
However I see no API method to selectedText().

var combo = new dhtmlXCombo(id, form, width); combo.enableFilteringMode(true); combo.attachEvent("onOpen",function(){ window.setTimeout(function(){ var text = combo.getComboText(); var index = combo.getSelectedIndex(); combo.setComboText(""); combo.filterSelf(); combo.setComboText(text); combo.selectOption(index, false, true); }, 1); });

You may try to use the following approach:


Where DOMelem_input is the object of the combo input.

Thanks Alexandra that worked perfectly.