Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by MaLa on Sep 06, 2008 14:39
open dhtmlx forum
Combobox - clear textfield after clicking

Hi Support-Team,

when a user chose a list entry of a combobox, it is shown in the textfield. This is ok. But if he clicks in the field again, the entry remains in the field.
Is it possible to clear the field by clicking in it?

Many thanks.
Answer posted by Support on Sep 08, 2008 09:40
There is no native support for such behavior, but you can attach direct DOM event , such as

dhtmlxEvent(combo.DOMelem_input,"click",function(){
    combo.setComboText("");
});
Answer posted by MaLa on Sep 08, 2008 14:45
Many Thanks. It works perfect.