Hosting Solutions
mobile_logo Table of Contents
seal_frontseal_back

draggable

The HTML draggable attribute specifies whether or not the element can be dragged.

HTML Code Example

Make an element draggable. <div id="paper" draggable="true"></div>

Possible Values

true - enable dragging. false - disable dragging.

JavaScript Interfacing

This attribute can be applied to an element using JavaScript, and its value may be changed at any time using JavaScript. element.draggable = true; /* enable dragging */ element.draggable = false; /* disable dragging */

HTML

Core Attributes

accesskeyclasscontenteditabledirdraggable