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"; } 

http://jsfiddle.net/uy95r/2/

you'll have play styles make good, should started.


Comments

Popular posts from this blog

python 3.x - Mapping specific letters onto a list of words -

javascript - jquery or ashx not working -

inno setup - TLabel or TNewStaticText - change .Font.Style on Focus like Cursor changes with .Cursor -