JavaScript - - By Sam Deering

jQueryUI Draggable Div Example

jQuery code snippet to load jQueryUI and then make a div draggable by using the jQueryUI draggable() function.

google.load("jquery", "1");
google.load("jqueryui", "1");

function OnLoad(){
  $('#content').html('
' + '
dragme
content
'); $("#draggable-handle-div").draggable({ "handle": "div" }); } google.setOnLoadCallback(OnLoad);
Sponsors