jQuery Autocomplete input box not posting back

eggejmg
eggejmg used Ask the Experts™
on
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
&nbsp;<br>

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

Open in new window


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

Open in new window


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.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Multitechnician
Top Expert 2014
Commented:
Set the name attribute of your input box
<input id="docnum" name="docnum" type="text" size="70" />

Open in new window

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial