|
Title: combobox combo-value looses it's value Post by: devnull on May 30, 2014, 07:18:49 PM I am using the following code to change the combobox into a normal input field when adding a new record.
Code: $('.fkey').combobox({The code does remove the dropdown and prevents the panel from showing, however when I save the form the value of the element is null even if a value is entered into the input field. It appears that <input type="hidden" class="combo-value" name="XX" value=""> is added to the DOM multiple times. When the first char is entered
I have also noticed, that the onChange() event gets fired twice when entering text using this method, but only gets fired once when the combobox is selected normally. Title: Re: combobox combo-value looses it's value Post by: stworthy on May 31, 2014, 07:00:55 AM The entered value of combo box must be exists in the drop-down items. When drop-down panel is empty, the entered value will be removed since there are no values exists in drop-down items.
To make the combobox works like a textbox, the 'keyHandler' property must be overridden to keep its entered value. Code: $('#cc').combobox({ |