jQuery UI Widgets › Forums › Lists › ComboBox › Set value in combobox is not returned via get value
Tagged: combobox, javascript combo box, jqwidgets combo box
This topic contains 1 reply, has 2 voices, and was last updated by ivailo 6 years, 7 months ago.
When I set a value into my combobox, the value is not returned when I request the value afterwards.
Code
$("#myComboBox").val('TEST'); alert($("#myComboBox").val());
jQuery code
$("#myComboBox").jqxComboBox('val', 'TEST'); alert($("#myComboBox").jqxComboBox('val'));
Any idea what I might be doing wrong? It is returning a value that has been entered before (via code) within the combobox.
Hi kbeckers,
The val method is working as expected, so please try to update to the latest version (4.3.0). Here is a demo with jqxComboBox’s val method.
Best Regards, Ivailo Ivanov
jQWidgets Team http://www.jqwidgets.com
You must be logged in to reply to this topic.