jQuery call not setting control

jQuery call not setting control

I have the following JavaScript/JQuery code... I have been asked to pick this up from a developer who left.  I am stumped as there are two DatePicker controls and one of the controls is set while the other one is not set.  

The results display in a grid and then show in a panel with the datepicker controls.   The event, clicking on the 'Edit' link in the grid populates two fields:

Here is the code:

DISREGARD it was an issue with a variable.