function drop(dropNodeData,source,event,dragNodeData) { var dragged=source.dragData.ddel; var sourceContainer=source.el.dom; var desContainer=this.getEl(); sourceContainer.removeChild(dragged); desContainer.appendChild(dragged);
return true; } var cfg={onNodeDrop:drop}; new Ext.dd.DropZone('today',cfg); new Ext.dd.DropZone('tmrw',cfg); }) </script> </head> <body> <h1>Today</h1> <ul id="today"> <li>shopping</li> <li>haircut</li> </ul> <h1>Tomorrow</h1> <ul id="tmrw"> <li>123</li> <li>456</li> </ul> </body> </html>