How to get ID of parent?

How to get ID of parent?

Hello all.

I am trying to get the ID of a parent. For example:

  1. <div id="parent_holder1">

  2. <div class="child_div">child div instance one</div>
  3.         <br />
  4.         <div class="child_div">child div instance two</div>

  5. </div><!-- PARENT HOLDER 1 -->

  6. <br /><br />

  7. <div id="parent_holder2">

  8. <div class="child_div">child div instance three</div>
  9.         <br />
  10.         <div class="child_div">child div instance four</div>

  11. </div><!-- PARENT HOLDER 1 -->


When I click any of the children with a class of 'child_dev', I would like to get the ID of the parent the clicked child is within.

For example - if I click "child div instance three" it would return "parent_holder2"

Thank you for your help!
Rich