Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

Professional Opinions
Ask a Question
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

troubleshooting Question

jQuery Autocomplete input box not posting back

Avatar of eggejmg
eggejmg asked on
2 Comments1 Solution474 ViewsLast Modified:
I'm just starting to experiment with jQuery in conjunction with PHP, so bear with me . . . The solution to my problem is probably obvious.  
For some reason, my Autocomplete input box is not submitting with the rest of the form.  Otherwise, it seems to work just fine.  But the information is missing when I look at the $_POST array.  The markup below is inside a form tag w/ method = "POST", action = same script, and enctype = "multipart/form-data".  The radio buttons appear but not the "docnum" input tag.  The form is submitted by JavaScript after some client-side validation.
<div class = "demo"><div class = "ui-widget">
<input type = "radio" id = "yes" name = "rbRev" value = "1">Yes&nbsp;&nbsp;
<input type = "radio" id = "no" name = "rbRev" value = "0" checked = "checked">No

<label id = "lblDocnum" for = "docnum">Enter doc #:&nbsp;</label>
<input id = "docnum" type = "text" size = "70">

The jQuery looks like this (located in separate file):
$(function() {		
			source: "typeahead.php",
			minLength: 2

I'm using the PHP/JSON method of populating the box remotely, as in the demo that comes with the jQuery UI package.  Like I said, the Autocomplete box works just fine; it's just ignored when I post the form.  Everything else from the form appears in the $_POST array.  Any ideas?
Let me know if I need to supply more information . . . Any help would be appreciated.
Avatar of leakim971
leakim971Flag of Guadeloupe imageMultitechnician
This problem has been solved!
Unlock 1 Answer and 2 Comments.
See Answers