| activate | ให้กำหนด function ที่จะถูกเรียกใช้งานเมื่อ มี drag-element มา วางลงบน drop-element สำเร็จ |
|---|
config:activate
return type:function
content:ให้กำหนด function ที่จะถูกเรียกใช้งานเมื่อ มี drag-element มา วางลงบน drop-element สำเร็จ โดยมี parameter 2 ตัว ได้แก่ event object และ object ที่มี parameter ได้แก่ draggable object, droppable object, element object, helper object, options object
example:$("div.box").droppable( { activate: function(event,object) { alert ( "drop activate" ); } } );