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'
});
}
});$('#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'
});
}
});
Also in JavaScript:
- sort date array javascript
- js use await in synchronous method
- js < less then
- how to add objects in array in javascript
- get style of element js
- js add class
- how to access an object javascript
- javascript replace doublequote with empty string
- angularjs show form validation errors
- react createelement
- react pdf generator
- angular vs react
- custom event js
- cubic root javascript
- moment date add
- jquery datepicker
- could not find a declaration file for module in react project
- react keep screen on
- javascript exercism.io bob solution
- shadown reAct native
- substring javascript
- angular npx
- is javascript object oriented
- react link to another page