sry guys.........reason is i'm bit weak in english ....what i want know is i want develop web component that enable drag and drop. i that case i use clone() method to get a copy of that web element, So i need assogn uniqe id to identify that object. after finishing the drag i need save all the id of the element that has been draged......i dont know how to do it...here is my jquery code. $(document).ready(function() {
// make div droppable $(".t1").draggable({helper: 'clone'}); $(".canvas").droppable( { accept:'.t1', //dropablae hoover and active class activeClass: 'droppable-active', hoverClass: 'droppable-hover', drop: function(ev, ui) { $(this).append($(document.createElement('div')).addClass('droped')); $(".droped").draggable(); $(".droped").append($(document.createElement('div')).addClass('t2')); $(".droped").load("getusername.aspx"); $(".droped").mousedown(function() { //this is the part i'm worry var val=$(ui.draggable).attr('title'); $(".droped").attr("id",val); if($("#Label2").text!=val) { $("#Label2").text("/t"+this.id+"/t"); send.push(val); } // $(".t2").text(counter); }) } }) $("#btn1").click(function(){ for(var counter=0;conter<send.length;counter++) { $(".t2").text(send.pop.toString(0)); } }); } ); i need the keep the id of each droped elemen . some one please help. thank u.