sortable divs
sortable divs
hi guys, how would i go about doing this:
in my database i have a bunch of rows each with its own 'order' column. the smaller the number in the order column, the highers its ordered.
so
id name order
1 hello 1
2 bye 2
would be used to create;
<div id="1">hello</div>
<div id="2">bye</div>
where id is the id in the database, not order.
i want to make these divs sortable through jquery, and then some how pass their new positions to a php file.
please dont just say 'use ajax'. that doesnt help. (because im sure i need to use something like ajax here, but i dont know how i would go about it)