Search
 
SCRIPT & CODE EXAMPLE
 

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

PREVIOUS NEXT
Code Example
Javascript :: have flat list automatically wrap react native 
Javascript :: js create timestamp with 10 digits 
Javascript :: return first letter of string javascript in uppercase 
Javascript :: javascript get last item in array 
Javascript :: function use for placing bet 
Javascript :: how to validate age above 18 in javascript 
Javascript :: get the value or text from select element using javaScript 
Javascript :: get minutes and seconds from seconds 
Javascript :: javascript for loop starting from end 
Javascript :: set element position js 
Javascript :: iterate object keys javascript 
Javascript :: get the last item in object javascript 
Javascript :: discord.js random message 
Javascript :: number pyramid in javascript 
Javascript :: Using webpack 5. Reason: future.webpack5 option enabled https://nextjs.org/docs/messages/webpack5 
Javascript :: create array javascript numbers 
Javascript :: javascript console output 
Javascript :: getkey by value js 
Javascript :: How to make "select option" select option for quantity 
Javascript :: javascript maximum date 
Javascript :: export variables react 
Javascript :: create angular app with routing and scss 
Javascript :: how to redirect to another page in javascript on submit type 
Javascript :: for each python json 
Javascript :: js check if element hidden 
Javascript :: javascript check if is nan 
Javascript :: how to add jquery in js file 
Javascript :: javascript dedupe array 
Javascript :: express limit based on ip 
Javascript :: convert array string to number 
ADD CONTENT
Topic
Content
Source link
Name
6+1 =