Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jQuery resizable() and multiple alsoResizes?

Is there a way to set multiple alsoResizes in jQuery UI?

$('.selector').resizable({ alsoResize: '.other' });

I would like to set a couple of other elements to also resize, not just one. The official documentation tells nothing.

like image 644
Tower Avatar asked Mar 20 '10 15:03

Tower


1 Answers

If you have object reference then you can use like this:

$(el).resizable(
        {
            alsoResize: [ el.children[0], el.children[1] ]
        });
like image 66
crazytoo Avatar answered Nov 15 '22 20:11

crazytoo