Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

save sort order of jquery sortable

$('#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'
        });
    }
});
Comment

PREVIOUS NEXT
Code Example
Javascript :: jquery get padding top without px 
Javascript :: Prisma where in array 
Javascript :: why geting empty array from mongodb 
Javascript :: add word in string in javascript 
Javascript :: for loop js 
Javascript :: javascript swap array elements 
Javascript :: js number padding to number of characters 
Javascript :: javascript player movement 
Javascript :: cet time zone right now 
Javascript :: javascript trim text 
Javascript :: javascript not equal 
Javascript :: Destructuring of object in ES6 
Javascript :: check null or undefined in javascript 
Javascript :: get file extension in javascript 
Javascript :: angular custom directive 
Javascript :: js get selected value by id 
Javascript :: how to use mui 
Javascript :: custom processing datatables 
Javascript :: check phone number validation in javascript 
Javascript :: javascript fetch api 
Javascript :: promise syntax for javascript 
Javascript :: how to export default class in javascript 
Javascript :: GET and SET the attribute of an element 
Javascript :: js random number array 
Javascript :: myFunction with param on addEventListner 
Javascript :: how to check provided value is in array in javascript 
Javascript :: round value down html 
Javascript :: how to add image url in tailwindconfig .js 
Javascript :: fsm2regex 
Javascript :: how to add all files in a director to an array in javascript 
ADD CONTENT
Topic
Content
Source link
Name
1+9 =