jQuery UI #4666

http://bugs.jqueryui.com/ticket/4666

HTML

<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<link rel="stylesheet" href="//ajax.googleapis.com/ajax/libs/jqueryui/1.11.0/themes/smoothness/jquery-ui.css" />
<script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.11.0/jquery-ui.min.js"></script>

<p><a href="http://bugs.jqueryui.com/ticket/4666">jQuery UI bug #4666</a> - Using a jQuery object as the <code>alsoResize</code> option does not work.</p>

<div class="resizable"></div>
<div class="alsoResize"></div>
<div class="alsoResize"></div>

CSS

body { padding: 20px; }
p { line-height: 1.5; }
.resizable, .alsoResize {
    border: 1px solid black;
    height: 100px;
    width: 100px;
    margin-top: 30px;
}

JavaScript

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