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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login
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: 61623
    
  67

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.

 
Consider Paul's rocket mass heater.
 
subject: JQuery, JSON and getting the selected value