5 <title>jQuery UI Resizable - Synchronous resize</title>
6 <link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
7 <script src="../../jquery-1.9.1.js"></script>
8 <script src="../../ui/jquery.ui.core.js"></script>
9 <script src="../../ui/jquery.ui.widget.js"></script>
10 <script src="../../ui/jquery.ui.mouse.js"></script>
11 <script src="../../ui/jquery.ui.resizable.js"></script>
12 <link rel="stylesheet" href="../demos.css">
14 #resizable { background-position: top left; }
15 #resizable, #also { width: 150px; height: 120px; padding: 0.5em; }
16 #resizable h3, #also h3 { text-align: center; margin: 0; }
17 #also { margin-top: 1em; }
21 $( "#resizable" ).resizable({
24 $( "#also" ).resizable();
30 <div id="resizable" class="ui-widget-header">
31 <h3 class="ui-state-active">Resize</h3>
34 <div id="also" class="ui-widget-content">
35 <h3 class="ui-widget-header">will also resize</h3>
38 <div class="demo-description">
39 <p>Resize multiple elements simultaneously by clicking and dragging the sides of one. Pass a shared selector into the <code>alsoResize</code> option.</p>