jQuery draggable and resizable images

http://jsbin.com/ipoxe5/edit#javascript,html,live

 

$(document).ready(function(){

  $(“img”).resizable({ handles:’n,e,s,w,ne,se,nw,sw’ , maxHeight: 300, aspectRatio: true }).parent().draggable({containment: “#droppable”, snap:false});  

  $( “#droppable” ).droppable({

      drop: function( event, ui ) {

        $( this )

          .find( “p” ).hide();

      }

    });

});

Leave a Reply