Skip to content

scazzy/jQuery-Draggable

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

Lightweight Draggable() jquery plugin

jQuery Draggable()

A jQuery plugin that adds cross-browser dragging support.

In order to use the plugin, simply bind the "draggable" event to an element.

Here is an example:

// Basic dragging a div

$("div").draggable();

// Restricting dragging to an axis

$("div").draggable({
  axis: 'x'
});

// Restricting dragging to it's parent container (boundary)

$("div").draggable({
  containParent: true
});



Demo:

http://jsfiddle.net/yelton/2TQgB/
  • Requires jQuery 1.7.2 or higher
  • Supports most browsers - Chrome, Safari, Firefox, IE7+

About

Lightweight Draggable() jquery plugin

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published