wood burning stoves 2.0*
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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
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: 60785
    
  65

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.]


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by 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 problem
Empty Ajax response with Spring 3 and jQuery
do not get JSON data back (using JSONPlugin)
JQuery Autocomplete Loading image
JQuery Autocomplete with ASP.Net webservice