|
Title: Unselect combobox throw error Post by: arma on July 23, 2014, 02:52:33 AM Hi,
When i unselect a combo, it throws error "TypeError: Cannot read property 'length' of undefined". For example i have a combo with value 1 selected and then i run in console $('#mycombo').combobox('unselect',1); Is it a bug or i call the method in a wrong way? Note: i have attached onChange event in the combobox. Thanks Title: Re: Unselect combobox throw error Post by: arma on July 23, 2014, 02:56:49 AM Ah oke i got it,
when method unselect called, it will trigger onchange which will return newVal parameter as undefined. Solved now. Code: onChange: function(newVal, oldVal) { |