Advertisement
Ludwiq

JavaScript

Mar 15th, 2015
244
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var editURL = "/Words/Edit";
  2. var checkedRows = new Array(); //tablica jest poprawnie zapełniona danymi. Dane (jako JSON) wyglądają tak: "["1","12"]"
  3. [...]
  4. $.post(editURL, $.param({ "objects": checkedRows, "newCollectionID": $("#changeCollectionDropdown").val() }, true), function () {
  5.         location.reload();
  6.     }).fail(function (html) {
  7.         $("body").html(html.responseText);
  8.     });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement