I have this html:\[code\]<div id="something" class="draggable">Hello World!</div>\[/code\]When I press a button I invoke this code:\[code\]function addDiv(fatherDiv){ $("#"+fatherDiv).append("<div id='randomId' class='draggable' style='position: absolute; top: 100px; left: 250px; width: 120px; height: 20px;'>Text of Div</div>"); }\[/code\]The problem is that the Div is created perfectly BUT the class doesn't work (draggable) when appending the Div, making it the only non draggable element.How can I do so that the appended Div can become a draggable element just like the other divs?