javascript - adding and removing html content on sortable in jquery ui -
i new jquery , stuck 1 problem . want whenever draggble item dragged sortable items want html code displayed drop here user can drop in between sortable elements code below id sortable element sort1,sort2,sort3,..... whenever user drags item on each of id perticular time want display drop here .and when dragged away display block should go . there way in can accomplish
this js fiddle .
this html code <div id="sortable"> <div class="sort" id="sort1">sort1</div> <div class="sort" id="sort2">sort2</div> <div class="sort" id="sort3">sort3</div> <div class="sort" id="sort4">sort4</div> <div class="sort" id="sort5">sort5</div> <div class="sort" id="sort6">sort6</div>
you css:
.ui-sortable-placeholder { visibility: visible !important; } .ui-sortable-placeholder:after { content: "drop here"; }
you'll have play styles make good, should started.
Comments
Post a Comment