i have dynamic Rows of Checkboxes, what i am trying to do is to get Parent Tr Custom attribute value but unable to do so,,i am doing some thing like this

```
   jQuery('[id^="status-"]').click(function(event) {
    var parentTrID = $(this).parent().find('data-tt-id');
    alert(parentTrID);
});

```

and this is my HTML/Php part

```
       <?php
            $count = 0;
            foreach ($this->Allocations as $Allocation)
            {
                $count++;
                ?>
                <tr id="<?php echo $count; ?>" data-tt-id="<?php echo $Allocation->getId(); ?>" <?php echo (is_object($Allocation->getParent()) ? 'data-tt-parent-id="' . $Allocation->getParent()->getId() . '"' : ''); ?>>
                    <td><?php echo @$Allocation->getName(); ?></td>
                    <td id="chk"><input type="checkbox" name="status[]" value="<?php echo $Allocation->getId(); ?>"></td>
                    <td><input  type="hidden" id="code-<?php echo $count; ?>" name="code-<?php echo @$Allocation->getCode(); ?>"></td>
                </tr>
            <?php }; ?>

```