Actually like this I create
$("#addLesson").click(function(){ var inputVal=$("#idLesson").val(); if(inputVal){ var divStart = "<div class='well col-md-6 col-sm-8 col-xs-12 draggable'>"+inputVal+"<span class='glyphicon glyphicon-remove del'></span></div>"; $(blockLesson).append(divStart); } }); here so I try to connect
$('#blockLesson').on( 'click',"div",draggable()); the console gives such an error
ReferenceError: draggable is not defined
and so I try
$('#blockLesson').on( 'draggable',"div"); and so
$('#blockLesson').on( 'click',"div",function(){$(this).draggable()}); that does not work.
()- Grundy