How do I get the id of each list index?
debugging in firebug shows:
<li class="droptrue ui-draggable" style="display: list-item;">
"...text of the li..."
</li>
I’m passing a unique id to each list element.
Here is a scaled down sample in jsfiddle:
http://jsfiddle.net/n2learning/tV4n7/89/
Thanks!
the
idattribute will not cloned. So change it to something else e.g.data-idcould solve your problem.Check http://jsfiddle.net/tV4n7/96/