Draggable Examples

Examples

Tutorial Overview

First create an element in the HTML.

<div id="testNode" style="position: relative;">change me</div>

(The styles do not need to be in an inline style attribute.)

Next, create a Draggable

<script type='text/javascript>
var draggable = APE.drag.Draggable.getById( "testNode" );
</script>