views:

25

answers:

1

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 choosing.

$("div").mousedown().resizeable();

or

$("div").mousedown(function(){ $("div").resizeable()}
A: 

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.

fudgey