# jquery.dad.js **Repository Path**: tinglab/jquery.dad.js ## Basic Information - **Project Name**: jquery.dad.js - **Description**: DAD: A simple and awesome Drag And Drop plugin! - **Primary Language**: HTML - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-16 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # jquery.dad.js DAD: A simple and awesome Drag And Drop plugin! ##1.Installation Insert the basic css file: ``` ```` And the dad plugin file after jquery. ``` ``` ##2.Usage Create a group of DOM elements that can be resorted via drag and drop inside the parent container 'demo'. ```
...
...
...
...
``` and just call it: ``` $(function(){ $('.demo').dad(options); }) ``` ##3.Options You can call options width a JSON object. * target: '.selector'; * draggable: '.selector' from the target child div. * callback: function(e){} where e is the jquery object for the dropped element * placeholder: string with the placeholder text on draggable area ##4.Functions * n.addDropzone(selector,function(e){}); Sample: ``` var n=$('.demo').dad(); n.addDropzone('.dropzone',function(e){ console.log(e); //e is the jquery object for the dropped element }) ``` * n.activate() ``` var n=$('.demo').dad(); n.activate(); ``` * n.deactivate() ``` var n=$('.demo').dad(); n.deactivate(); ``` For more info visit the [plugin website](http://www.konsolestudio.com/dad) **Donations:** 1KqqekGTZASaF8KxUfRtuaFUtf9JXpn5hZ