This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes Is it possible to put a button inside autocomplete in jquery ui plugin? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Is it possible to put a button inside autocomplete in jquery ui plugin?" Watch "Is it possible to put a button inside autocomplete in jquery ui plugin?" New topic
Author

Is it possible to put a button inside autocomplete in jquery ui plugin?

shankhas sanyal
Ranch Hand

Joined: Jun 15, 2008
Posts: 45
My requirement:
I have a 4 text input fields that I want to implement autocomplete functionality. If the input does not match the dropdownlist, I want to put a button that will open a jquery modal form, that the user can enter the desired data which will update the list.

My problem:
I have put a button in the dropdownlist when the input does not match. When its clicked, nothing happens, and html code for the button gets populated in the input field.

Where am i going wrong? Can you please help me? My code is given below.

1. index.jsp



2. getdata.jsp



3. my bean: AutoCompleteBean



4. DummyDB.java



I love this place!
shankhas sanyal
Ranch Hand

Joined: Jun 15, 2008
Posts: 45
i fixed it by putting



then showAlert() calls the dialog
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Is it possible to put a button inside autocomplete in jquery ui plugin?