I have recently posted a question here that told me to use .on() to attach elements to dynamically created objects. I'm just having an issue implementing this into my scripts, because I use an element that is from EasyUI: 
$(".item").draggable({ ... });
And I'm not quite sure how to modify this to work with .on(). 
I have tried the following:
$('body').on('draggable', '.item', function() { ... }); (gives me an error that : is an unexpected token (the line of code is revert:true,)).  
And:
$('body').on('draggable', '.item', draggable({ ... })); but that says draggable is not defined. 
Sorry if this is really easy, It's just all going a bit over my head :P
Thanks for any help
 
     
     
     
    