aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes how to retrieved selected value from jquery autocomplete. 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 "how to retrieved selected value from jquery autocomplete." Watch "how to retrieved selected value from jquery autocomplete." New topic
Author

how to retrieved selected value from jquery autocomplete.

sam White
Ranch Hand

Joined: Feb 18, 2011
Posts: 208
Hi, with JQuery 1.9.2 and JSP, I created an autocompelte input box.
When I selected a text from the input box, I don't know how to extract the input text and append it to the hidden field.

Here is my the autocomplete jquery scripts:




jsp code:



I've been searched google for 2 days, but I can't anything that suits my case.

Any suggestion and pointers are very appreciated.
Thanks
Sam
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61224
    
  66

Please post nicely formatted HTML as sent to the browser. Showing us the server-side markup with JSP custom tags isn't particularly useful for debugging client-side issues.

In other words, we have no idea what " <form:hidden path="suburb" /> " turned into when sent to the browser. That's what we need to see.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
sam White
Ranch Hand

Joined: Feb 18, 2011
Posts: 208
Hi, I have resolved this issue. But when I select the item and click on the one on in the list, the selected value didn't get pick up to the input box.

Here is the code with "select" clause:



What need to be corrected in order the selected item get pick up by mouse-click in the list?

Thanks
Sam
sam White
Ranch Hand

Joined: Feb 18, 2011
Posts: 208
Just found out changing false to true in the select clause fixed the issue.
Thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to retrieved selected value from jquery autocomplete.