In jQuery, how do you make a mousedown() event trigger a resizeable box feature?
In jQuery, how do you make a mousedown() event trigger a resizeable box feature? A similar idea is cropping. You click on the picture and drag your mouse and it creates a box to the size of your c开发者_运维问答hoosing.
$("div").mousedown().resizeable();
or
$("div").mousedown(function(){ $("div").resizeable()}
Maybe you want the jCrop plugin?
Oops I just realized it the same link as the one Nick added as a comment - please give him credit if this is what you needed.
Edit: I found another crop plugin called imgAreaSelect.
精彩评论