Draggable Demo

Valid draggable values for testing.

HTML

<!doctype html>
<html lang="en">
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <title></title>
        <meta name="description" content="">
        <meta name="author" content="">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
    </head>
    <body>
        <div id="container">
            <header></header>
            <div id="main" role="main">
                <img id = "img_Nothing" src="http://placehold.it/150&text=nothing" title="nothing" />
                <img src="http://placehold.it/150&text=auto" title="auto" draggable="auto"/>
                <img src="http://placehold.it/150&text=true" title="true" draggable="true"/>
                <img src="http://placehold.it/150&text=false" title="false" draggable="false"/>
            </div>
            <footer></footer>
        </div> 
    </body>
</html>

JavaScript

$(document).ready(function() {
    var img_nothing = document.getElementById("img_Nothing");
    alert("img_nothing.draggable:"+img_nothing.draggable);
    img_nothing.draggable = false;
    alert("img_nothing.draggable:"+img_nothing.draggable);
    
});