Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

jQuery UI Sortable, then write order into a database

$('#element').sortable({
    axis: 'y',
    update: function (event, ui) {
        var data = $(this).sortable('serialize');

        // POST to server using $.post or $.ajax
        $.ajax({
            data: data,
            type: 'POST',
            url: '/your/url/here'
        });
    }
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #jQuery #UI #write #order #database
ADD COMMENT
Topic
Name
5+8 =