I have items that my php file outputs to a webpage as an unordered list. I want to select these items and then put them into an array.
I would like to use the jQuery drag and drop functionality as seen here in the first answer:
jQuery Sortable - Select and Drag Multiple List Items
and subsequently demonstrated in the fiddle here:
My question is, how do I get the dragged items into an array that I can use with php? Here is the html from the above code:
<div class="demo">
<p>Available Boxes (click to select multiple boxes)</p>
<ul id="draggable">
<li>Box #1</li>
<li>Box #2</li>
<li>Box #3</li>
<li>Box #4</li>
</ul>
<p>My Boxes</p>
<ul id="droppable">
</ul>
</div>
Thanks in advance.