Take a look at this fiddle.
I need to have the two "linked" divs (which have ID's that are identical except for a suffix A and B) move in unison when dragged. I'm trying to write JS to handle this without going into the jquery ui library and messing it up. After reading the various option flags here, there doesn't appear to be a simple way to handle this.
HTML:
<body>
<div class="template ui-sortable" id="template_epsemail_email">
<div class="tmplcell moveable ui-sortable-handle" id="tmplchunk_1"> unlinked </div>
<div class="tmplcell moveable ui-sortable-handle" id="tmplchunk_2"> unlinked </div>
<div class="tmplcell moveable ui-sortable-handle" id="tmplchunk_3_A"> linked </div>
<div class="tmplcell moveable ui-sortable-handle" id="tmplchunk_3_B"> linked </div>
</div>
</body>
JS:
$(document).ready(function() {
$('.template').sortable({
containment: 'body',
axis: 'y',
items: '.tmplcell.moveable',
});
});