try calling $( ".draggable" ).draggable(); once the dynamically created element is added.
$(function() {
$( ".draggable" ).draggable();
$('.content').click(function(){
var htmlData='';
$('.demo').append(htmlData);
$( ".draggable" ).draggable();
});
});
Working Demo