to be complete, here what i've come with my connected sortables
:
$("#tree").sortable({
connectWith : ["#tree2","#tree3"],
update: function(e,ui){
$(".tree li").removeClass("last");
$(".tree li:last-child").addClass("last");
var exid = $(ui.item[0]).attr("id").split("_");
var newparent =
$(ui.item[0]).parent("ul").attr("id").split("_");
$(ui.item[0]).attr("id",newparent[1]+"_"+exid[1]);
}
});
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"jQuery UI" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/jquery-ui?hl=en
-~----------~----~----~----~------~----~------~--~---