jQuery UI Widgets › Forums › Lists › ComboBox › how to get the entered text in jqxcombobox
Tagged: combobox, displayMember, get, jqxComboBox, val, value, valueMember
This topic contains 17 replies, has 5 voices, and was last updated by Dimitar 7 years, 6 months ago.
-
Author
-
combobox is to either select from the existing list or to enter the value…. how to get the entered value if it is not matching with anyother value in the list
Hello Venu Gopal,
You can achieve this by using the val method:
var value = $("#jqxComboBox").jqxComboBox('val');
or
var value = $("#jqxComboBox").val();
Best Regards,
DimitarjQWidgets team
http://www.jqwidgets.com/no it is not displaying anything
my combobox is loaded from a select box with autocomplete enabled, it has got 5 entries like [displaymember, valuemember]
i entered something(xyz) which is not matched to any displaymember.now i want to get what is entered in the combobox (i.e. xyz)
Hi Venu Gopal,
Please update your version of jQWidgets to the latest one (2.8). The method val was implemented in the latest release.
Best Regards,
DimitarjQWidgets team
http://www.jqwidgets.com/Thank you
i have copied the new version’s jqwidget folder in place of old one…
it didnt worked well…. my website was changed….
do i need to upgrade my jquery library also to jquery-1.9.1.min, iam using 1.8.3.min…..Hi Venu Gopal,
There is no need to also upgrade the jQuery version. However, please take a look at the Release History to see all the breaking changes in new versions. For example, in 2.8, the splitter widget works with two split panels.
Best Regards,
DimitarjQWidgets team
http://www.jqwidgets.com/one of my combobox is displaying its elements small and merged….
iam populating the combobox from a select box in which first entry is empty one… after removing that it is displaying correctly
Hi Venu Gopal,
This is a known issue and will be fixed in the next version of jQWidgets.
Best Regards,
DimitarjQWidgets team
http://www.jqwidgets.com/var value = $("#myComboBox").myComboBox('val');
orvar value = $("#myComboBox").val();
are returning a value of ‘undefined’
if i try
var value = $("#myComboBox").html();
i get a big block of html (mainly css) and i can see value=”the value i want” in there.any ideas ?
thanksHello jcansell,
Instead of:
var value = $("#myComboBox").myComboBox('val');
you should call:
var value = $("#myComboBox").jqxComboBox('val');
because the name of the widget is jqxComboBox, not myComboBox. Here is an example, which shows that the method val works correctly with version 3.7.1 of jQWidgets: http://jsfiddle.net/Dimitar_jQWidgets/xtvge9y7/.
Best Regards,
DimitarjQWidgets team
http://www.jqwidgets.com/Thanks,
while i agree that the function works in the jsfiddle, i’m still getting ‘undefined’ in my own code (which uses a json source).
i am able to use a bit of string handling to extract the value=”” when i usevar value = $("#myComboBox").html();
but i would like to know wherevar value = $("#myComboBox").val();
is failing.I have the latest version of jqx.
jonathan.
Hi jonathan,
Are there any errors thrown in your browser’s console? Please share them if there are any and post a code sample or a JSFiddle which reproduces the issue.
Best Regards,
DimitarjQWidgets team
http://www.jqwidgets.com/I am still having similar problem now.
WHen I edit a value from withing the combobox or type another value into the combobox, the value is not read or submitted.Somebody with the solution please help me.
I have tried chnaging the methods, but nothing is happening. -
AuthorPosts
You must be logged in to reply to this topic.