Hi Guys, couple of questions regarding jquery sortable lists.
1> Say i have 2 'sortable' lists feeding off each other, how can i limit the number of items that can be added to either list? basically when a list has reached 5 items i would like no more to be able to be dropped onto it. i would also like items to still be able to be removed from it though. My first attempt was to intercept the drop function and 'return false;' if the parent list had 5 items. that doesnt seem to work, it still drops it on. Second attempt was to revert the item, and that failed. drop : function (ev, ui) { if (5 items found) { $(ui).revert(); ?? } } 2> So then i thought i could get the sender id of the sortable list that the item came from but i dont know how to do that... drop : function (ev, ui) { senderid = $(ui).sender.attr('id'); ??? } thanks for any help D -- You received this message because you are subscribed to the Google Groups "jQuery UI" group. To post to this group, send email to jquery...@googlegroups.com. To unsubscribe from this group, send email to jquery-ui+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/jquery-ui?hl=.