I have that inline jquery datepicker that takes data from a MySQL db called events.
I uploaded it here:

At the lines 1309 and 1317 of the jquery-ui-1.9.1.custom.php file, the value of the dropdown menu named droptest which is in the index.php file is being filled.

What I want to do is to take that value from the aidai DB table depending on the date clicked.

eg if I click the date "6/11/2012", the value of the dropdown thorakalgia(which will take the place of the droptest) should be 3.

Any suggestions?
Thank you!