This is how I create the element:
var date = new Date(); var path = '/frontend/web/image/frontendImage/carusel/'+date.getFullYear()+'/'+(1+date.getMonth())+'/avatar-'+file.name; var img = document.createElement('img'); img.src = path; img.setAttribute('class','draggable ui-widget-content'); document.getElementById('forIMG').appendChild(img); then I try to connect draggable libraries in this way
$(".draggable").draggable(); $("#forIMG").on('draggable','.draggable'); but neither option works. Do not tell me why?
forImgandforIMGprobably different things. Apparently so - Alexey Shimansky