You can use the following JqueryUI cdn to replace the JqueryUI version in the code:
JqueryUI Online Editor that allows your JqueryUI code online without the need of a web server, You don't need to use a text editor to edit JqueryUI files on your computer.
This way you can quickly and easily see the JqueryUI running results, With ace editor, any errors or warnings are identified and clear and actionable feedback is provided to help you improve the performance of your code.
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>jQuery UI online editor</title>
<style>
#draggable { width: 100px; height: 100px; padding: 0.5em; float: left; margin: 10px 10px 10px 0; }
#droppable { width: 150px; height: 150px; padding: 0.5em; float: left; margin: 10px; }
</style>
<script type="text/javascript" src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>
<script src="https://cdn.staticfile.org/jqueryui/1.10.0/jquery-ui.min.js"></script>
<script>
$( function() {
$( "#draggable" ).draggable();
$( "#droppable" ).droppable({
drop: function( event, ui ) {
$( this ).addClass( "ui-state-highlight" ).find( "p" ).html( "Dragged in!" );
}
});
} );
</script>
<style>
#draggable {
width: 100px;
height: 100px;
padding: 0.5em;
float: left;
margin: 10px 10px 10px 0;
border: 1px solid #dddddd;
background: #ffffff;
color: #333333;
}
#droppable {
width: 150px;
height: 150px;
padding: 0.5em;
float: left;
margin: 10px;
background: #fffa90;
}
</style>
</head>
<body>
<div id="draggable">
<p>Click me and hold the mouse to drag me</p>
</div>
<div id="droppable">
<p>Drag it to me</p>
</div>
</body>
</html>