Detecting closest or parent div
<p>I have the following script:</p>

<p><a href="http://jsfiddle.net/oshirowanen/pALBV/" rel="nofollow">http://jsfiddle.net/oshirowanen/pALBV/</a></p>

<p>How do I make this more dynamic, so I do not have to manually specify the button clicks for each button if the number of buttons on screens is unknown as in the end result, the containers along with the container content will be database generated.</p>

<p>At the moment, I have only specified button_2 in jquery script.</p>
