Basically, your draggable items will be <li> , and your droppable will be <div> or <span> or both. Set the necessary parameters for both draggable and droppable. After that, handle the drag event of the draggable and drop object for droppable to execute any custom functions. Check quotation marks using the accept droppable option (this is either a selector or a function). Here is the necessary documentation:
Draggable: http://jqueryui.com/demos/draggable/
Droppable: http://jqueryui.com/demos/droppable/
jsFillde: fiddle
source share