YouTip LogoYouTip

Jeasyui Dd Basic

jQuery EasyUI Drag and Drop – Basic Drag and Drop

jQuery EasyUI Drag and Drop – Basic Drag and Drop

This tutorial shows you how to make HTML elements draggable. In this example, we will create three DIV elements and then enable their drag and drop functionality.

Image 2

First, we create three <div> elements:

For the first <div> element, we make it draggable using the default settings.

$('#dd1').draggable();

For the second <div> element, we make it draggable by creating a proxy that clones the original element.

$('#dd2').draggable({proxy:'clone'});

For the third <div> element, we make it draggable by creating a custom proxy.

$('#dd3').draggable({proxy:function(source){var p = $('<div class="proxy">proxy</div>');p.appendTo('body');return p;}});

Download jQuery EasyUI Example

jeasyui-dd-basic.zip

← Jeasyui Dd ShoppingJeasyui App Rssreader β†’