I wrote a simple script with 1.5.2 which used a sortable and a
droppable. If you dropped a sortable element onto the droppable it
appended it to another element. I used this functionality to make a
sortable list with a 'trash' option.
The same code doesn't work with 1.6rc2. The appendTo command is simply
having no effect.
Here is my code.....
<script>
$(document).ready(function(){
$("#trash").droppable({
accept: ".sortable",
drop: function(e, ui) {
ui.draggable.appendTo("#trashed");
}
})
$("#sortable_list").sortable({});
});
</script>
Any suggestions??
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---