control tabindex after datepicker

control tabindex after datepicker

I'm using the datepicker and found that after selecting the date it would be great to have the cursor go to the field that the date was entered in. The cursor goes to the top of the page currently. Any idea how to control that?
I guess it's a matter of setting focus after the datepicker function finishes but I'm not sure where that is.