Title: remove all options of combobox Post by: az85 on April 25, 2015, 08:34:16 AM Hello,
I need your help please. How can I remove all options from a combobox? I have a combobox and load the data from a remote URL. Thats all works very well. But I need a function, which I can remove all loaded options from the combobox. I have already test the 'clear' and 'reset' methods, but with this methods only the value was remove. The options are still there. Title: Re: remove all options of combobox Post by: jarry on April 25, 2015, 04:40:55 PM Please call 'loadData' with empty array data to clear the data items.
Code: var cc = $('#cc'); Title: Re: remove all options of combobox Post by: az85 on April 26, 2015, 01:05:11 AM Perfect, it works.
Thank you. |