aspose file tools
The moose likes HTML, CSS and JavaScript and the fly likes JQuery, JSON and getting the selected value Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "JQuery, JSON and getting the selected value" Watch "JQuery, JSON and getting the selected value" New topic
Author

JQuery, JSON and getting the selected value

Dave Anderson
Greenhorn

Joined: Nov 09, 2009
Posts: 29
Using JQuery, autocomplete, JSON, I am successfully able to get a list of items from a database call.

I am also able to highlight the user's selection with the .change method; however, I cannot figure out how to get the actual value a user selects from the list, and this is where I'd like help.


Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56191
    
  13

It is set as the value of the input element that you instrumented as the autocompleter. You can also grab it during an autocompleteselect event.

[Covered in section 11.4 of jQuery in Action for those with the book.]


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
Dave Anderson
Greenhorn

Joined: Nov 09, 2009
Posts: 29
Thank you.

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JQuery, JSON and getting the selected value
 
Similar Threads
JQuery Autocomplete Loading image
jQuery autocomplete problem
Empty Ajax response with Spring 3 and jQuery
JQuery Autocomplete with ASP.Net webservice
do not get JSON data back (using JSONPlugin)