Jquery UI sortable inside contente -


i trying sort content inside sortable, idea when drag element want move content inside element in case "div" empty "li" keeping "li" in position.

            <ul class="mysortable">               <li><div>item 1</div></li>               <li><div>item 2</div></li>               <li><div>item 3</div></li>               <li><div>item 4</div></li>               <li></li>               <li></li>               <li></li>             </ul> 

$('.mysortable').sortable().disableselection()

i don't know if need or not use 'draggable' insted 'sortable' this, can help? many thanks.

no cant using sortable. sortable, immediate child elements of sortable container can dragged, in case, li.

you need use draggable , droppable. make divs draggable , li's droppable


Comments

Popular posts from this blog

How to mention the localhost in android -

php - Calling a template part from a post -