jquery ui sortable 2c then write order into a database

Solutions on MaxInterview for jquery ui sortable 2c then write order into a database by the best coders in the world

showing results for - "jquery ui sortable 2c then write order into a database"
Ricardo
11 Feb 2017
1$('#element').sortable({
2    axis: 'y',
3    update: function (event, ui) {
4        var data = $(this).sortable('serialize');
5
6        // POST to server using $.post or $.ajax
7        $.ajax({
8            data: data,
9            type: 'POST',
10            url: '/your/url/here'
11        });
12    }
13});