Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(".sort tbody").sortable({
- update: function(event, ui) {
- idnum= $(this).parent().attr('id');
- idnum=idnum.split("-")
- var Order = $("#ordertable-"+idnum[1]+' tbody').sortable('toArray').toString();
- $('#orderinput-'+idnum[1]).val(Order); //injecting data into hidden html form (to allow simple POST saving via sending the form) NO AJAX
- // alert( $('#orderinput-'+idnum[1]).val());
- },
- helper: fixHelper
- }).disableSelection();
- <table class="sort borders tight" id="ordertable-<?=$d->id?>">
- ...
- <input type="hidden" id="orderinput-<?=$d->id?>" name="orderinput-<?=$d->id?>">
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement