I have a text box that is getting autocompleted when the person starts typing in the project number. This works fine but now I wanted to validate that if they just type in a number and dont select one from the list that it validates that it is a job. Here is the code I have for the autocomplete and the text box’s id is projectnum.
$( '[name="projectnum"]' ).autocomplete({
source: "job_validate.php",
minLength: 3
});
You can use the remote attribute. This will check on submit of the form and onblur of the textbox to verify the job is valid.
http://docs.jquery.com/Plugins/Validation/Methods/remote