Initialize after the document is ready

Initialize after the document is ready

Hi everybody,

my problem is that, if I initialize everything when the document is ready, for example:
$(function() {
$("#sortable").sortable();
....
}

But then the user uploads files and are added to it as a <li>
 
How can I add a "type" like draggable(), to this new elements that are created after the document is ready?








Thanks for your time.