---
title: dragAndDrop
name: options-draganddrop
---

Turn on dragging and dropping of nodes.

* **true**: turn on drag and drop
* **false (default)**: do not allow drag and drop

Example: turn on drag and drop.

{% highlight js %}
$('#tree1').tree({
    data: data,
    dragAndDrop: true
});
{% endhighlight %}
