JSFiddle - React, Tailwind, and code Playground
HTML
<script src="http://code.jquery.com/ui/1.11.2/jquery-ui.js"></script>
<div class="wrapper"></div>
CSS
.draggable{
width:100px;
height:100px;
background:blue;
}
.draggable2{
width:100px;
height:100px;
background:red;
}
JavaScript
$(function() {
function dragg(el){
var y = "#"+el;
// $('#drag').html('<div class="draggable" id="'+arg+'"></div>');
var mk = [' <div id="'+el+'" ><div id="ki503"><p style="background-color: #cccccc; color:#ffffff; margin-left: -17px; margin-top: -25px; border: 1px #000000 dotted;">Mover</p>',
'</div><div id="'+y+'" >demo<div></div>'].join('\n');
$('.wrapper').append(mk)
// $(y).draggable();
$(y).resizable();
}
dragg('a');
});