I have inherited a site that has a jquery Datepicker in it. It works fine except in this one area (in fact this entire section has been problematic)

This is part of the code
Code:
    $( "#txtDOB, #txtSIDOB, .Datepicker" ).datepicker({
            changeMonth: true,
            changeYear: true,
			yearRange: '1950:2012',
			dateFormat: 'yy-mm-dd'
      });
The first two id's work fine, infact if I change the ID's to classes, it still works in those 2 inputs. (if I insert a class into another input area, it will work as well, just not in this one section)

The section that is a problem is titled 'dependents' and you are able to create multiple dependent sections, which I suspect is at the root of the problem.

This works fine
Code:
  <input type="text" name="txtDOB" id="txtDOB" class="Datepicker" value="<?php echo $objData["TI_DOB"]; ?>">
This will not

Code:
 <input type="text" class="Datepicker"   name="txtDIAge" id="txtDIAge" value="<?php echo $objDependantData["AGE"]; ?>">
I have tried adding #txtDIAge , but to no avail.

I'm sure I am not providing enough information for a solution, however perhaps someone could point out where else I should look for this.

Thank you
Gary