|
Title: Howto remove items from a combobox dynamically? Post by: Stefan B. on March 19, 2015, 01:04:23 AM I want to remove items from a combobox dynamically.
How can i do this? Title: Re: Howto remove items from a combobox dynamically? Post by: stworthy on March 19, 2015, 08:47:32 AM Please extend a new 'deleteItem' method to achieve this functionality.
Code: $.extend($.fn.combobox.methods, {Title: Re: Howto remove items from a combobox dynamically? Post by: Stefan B. on March 20, 2015, 01:37:18 AM THX for this implementation. But I have 2 other questions.
1) Is there a method to get the current selected Item index? 2) Is there a method to get the complete Item object data? There are only the methodes getText and getValue but not getSelected to fetch the complete item data. Title: Re: Howto remove items from a combobox dynamically? Post by: stworthy on March 20, 2015, 08:37:55 AM Please try the code below to get the selected row object and index.
Code: var cc = $('#cc');Title: Re: Howto remove items from a combobox dynamically? Post by: Stefan B. on March 23, 2015, 12:50:06 AM THX it works fine :D
|