¡@

Home 

2014/10/16 ¤W¤È 12:02:41

jquery Programming Glossary: copy_from

jQuery draggable items lose their draggability after being swapped (with jsfiddle example)

http://stackoverflow.com/questions/4589606/jquery-draggable-items-lose-their-draggability-after-being-swapped-with-jsfiddl

script type text javascript jQuery.fn.swapWith function to return this.each function var copy_to to .clone true var copy_from this .clone true to .replaceWith copy_from this .replaceWith copy_to document .ready function options revert true .. function to return this.each function var copy_to to .clone true var copy_from this .clone true to .replaceWith copy_from this .replaceWith copy_to document .ready function options revert true li .draggable options '#wrapper' .droppable.. follows jQuery.fn.swapWith function to return this.each function var copy_to to .clone true .appendTo #wrapper var copy_from this .clone true .appendTo #wrapper to .replaceWith copy_from this .replaceWith copy_to You can see the fascinating results..