Autosuggest pass more than one value to php page
Hey guys, very new to jquery. I found this autocomplete box (
http://jqueryui.com/autocomplete/) and I have a question.
For example's sake, let's say I have this database table of NFL teams with 2 fields: Conference and Team Name
Conference | Team Name
AFC | Steelers
AFC | Patriots
NFC | Packers
NFC | Seahawks
AFC | Dolphins
etc...
Then, let's say I have on my main page a text box called "team" that is used to search the database for a team name, then above it, a drop down box called "conference" with "AFC" and "NFC" as the choices (in real life this drop down box is generated by PHP).
I will send this info to getTeams.php page via ajax, which will query the database and return results for the autocomplete box.
I want to pass what is selected in the conference drop down to getTeams.php so I can properly return the right results, but I don't know how to pass the value of another element on the page, other than what the user has typed in the team text box. How exactly would I go about passing this extra "parameter" to getTeams.php?
Thank you all very much!