<div id="findThisId"></div>
<div id="divID">
<span id="spanID">
<p id="pID">p</p>
</span>
</div>
<br/>
<div id="output"></div>
I've been able to get to the parent div of the <p>
with this:
$('#pID').parent().parent().attr('id')
but how do then find the previous div id?