EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: lloyd on December 08, 2015, 10:08:03 AM



Title: combobox clear on click
Post by: lloyd on December 08, 2015, 10:08:03 AM
Hi,

How can I clear the combobox when it is selected (click/tab)?
IE. The current selected text is cleared before a new selection is made.


Thanks,

Lloyd


Title: Re: combobox clear on click
Post by: jarry on December 08, 2015, 03:11:39 PM
Please describe your question in more detail.


Title: Re: combobox clear on click
Post by: lloyd on December 09, 2015, 01:03:18 AM
I have a editable combobox, that has a default text value "---Select---".
What I need is, when the combobox is selected (by mouse click or keyboard tab) the default text value is cleared before I entered text or select from the drop down.


Title: Re: combobox clear on click
Post by: lloyd on December 09, 2015, 04:07:23 AM
I have found a solution http://jsfiddle.net/zspwbohy/ (http://jsfiddle.net/zspwbohy/)
I just need to modify it the clear the text. :)