Using the jQuery UI sorting function, the user can move the div in any direction. I want the user to be able to drag it up and down. How can i do this?
Thanks in advance.
Specifically for sorting:
http://api.jqueryui.com/sortable/#option-axis
$( ".selector" ).sortable({ axis: "y" });
Try something like this:
$('#items_wrapper').sortable({ axis: 'y', containment: 'parent', ... ...
You would use the axis method. See here api here .