Jquery Event

Jquery Event

I am successfully using the jquery ui datepicker event on a website. But if I click on the same day in both fields, then I don't get any information back. Also, if I click on yesterday and then today, I only get yesterday's info back. Please help me with this.
 
Basically I need to grab info from my database for whatever day I choose in the first text box through whatever day I choose in the second text box.
 
Thanks