javascript - Two jquery-ui sortables connected, how to change droppable target? -
i have 2 sortables connected means of jquery sortable plugin. possible change target draggables 1 of them? want drag not #sortable1 #sortable2, $('#sortable').parent(), because #sortable2 small. making larger spoils html layout.
$( "#sortable1, #sortable2" ).sortable({ connectwith: ".connectedsortable" }).disableselection(); <ul id="sortable2" class="connectedsortable"> <li class="ui-state-default">item 1</li> <li class="ui-state-default">item 2</li> </ul> <ul id="sortable2" class="connectedsortable"> <li class="ui-state-default">item 3</li> </ul>
here demo: https://jsfiddle.net/uq3vu5ne/
i not sure understand trying achieve here. want parent div height of second sortable or sortables have fixed height?
if it's first can remove static height. if it's latter can add fixed height , scroll sortables.
update: think need sortable/droppable take @ post please.
Comments
Post a Comment