Hey there, I'm a bit stuck and could really use your help. Here's the code snippet:
<ul id="add_col">
<li id="row_1"> <a onclick="add_row('container_1_1','','row_1','',0)" href="javascript:void(0);" class="aadd" style="display: none;">+</a>
<div id="container_1_1" class="drop-container ui-droppable"></div>
<ul id="dr2761">
<li id="row_1"><a onclick="add_row('container_1_2','rem2761','row_1','','')" href="javascript:void(0);" id="rem2761" class="aadd" style="display: inline;">+</a> <a onclick="tremove('2761','row','row_1')" href="javascript:void(0);" class="arem">-</a>
<div id="container_1_2" class="drop-container ui-droppable"><span id="key_3" class="movable ui-draggable">ricky1</span></div>
</li>
</ul>
I'm currently in the div container_1_2
and I'm trying to navigate up to the parent div container_1_1
. I've tried using various combinations of parent()
, prev()
, and find()
but can't seem to reach the desired ancestor div
.
Any assistance would be greatly appreciated.