I have below jquery function, but only resizable working not draggable. If I remove the resizable, then only draggable work.
function drag(obj) {
        $(function () {
            $(obj).draggable({containment: "#design"});
        });
        $(function () {
            $(obj).resizable({containment: "#design"});
        });
    }
HTML is:
<img width="150px" src="abc.png" ondrag="drag(this)" onclick="drag(this)" id="imgs" class="ui-widget-content">
I want that both resizable and draggable work. How can I do that ?
 
    