Hi all, I have some HTML as follows and I want it so when you click on an <li> it returns the dd3-content and url.
<div class="dd" id="nestable3">
<ol class="dd-list" id="start">
<li class="dd-item dd3-item">
<div class="dd-handle dd3-handle"></div>
<div class="dd3-content">Home</div>
<div class="url" style="display:none;">homeurl</div>
</li>
<li class="dd-item dd3-item">
<div class="dd-handle dd3-handle"></div>
<div class="dd3-content">About Us</div>
<div class="url" style="display:none;">abouturl</div>
</li>
<li class="dd-item dd3-item">
<div class="dd-handle dd3-handle"></div>
<div class="dd3-content">Gallery</div>
<div class="url" style="display:none;">galleryurl</div>
<ol class="dd-list">
<li class="dd-item dd3-item">
<div class="dd-handle dd3-handle"></div>
<div class="dd3-content">Contact</div>
<div class="url" style="display:none;">contacturl</div>
</li>
</ol>
</li>
</ol>
</div>
My problem is if it more than one level deep. It is returning the li above it as well
I just need the level clicked. Also I'm looking to write a delete option to delete the <li> clicked and the immediate ones below it. I can, if needed give each <li> a unique id. How can I achieve this.