jQuery UI Resizable

Ridimensionare elementi a runtime con jQuery UI.

by Michele Pisani

HTML

<img class="element" src="http://dummyimage.com/150x150/ddd/000&text=Ridimensionami" />

JavaScript

$(function() {
    $(".element").resizable({
        aspectRatio: true,
        minWidth: 50,
        maxHeight:250
    });
});