Datepicker return focus to next input element?

Datepicker return focus to next input element?

We have a form that is dynamically created based on a query to the database, one of the fields is a date field that we are using the datePicker to populate. The problem is that I need the datePicker to move to the next text input field after selection, currently it throws the tabIndex into never never land and starts back at the beginning.
 
The hiccup is that I don't always know the next text elements ID so I need to walk the DOM to get it.
 
I've tried using onSelect this.focus and same with onclose but they put focus back to the field that triggers the datePicker to popup.
 
I've been searching the net trying to find a way to tell it to move to the next field but have had no luck getting any of the options implemented.
 
Any suggestions would be appreciated.
 
thanks