Advertisement
Guest User

Untitled

a guest
Sep 23rd, 2017
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $(document).ready(function () {
  2.     var table = $('#myTable').DataTable();
  3.  
  4.     table.MakeCellsEditable({
  5.         "onUpdate": myCallbackFunction
  6.     });
  7. });
  8.  
  9. function myCallbackFunction(updatedCell, updatedRow, oldValue) {
  10.     console.log("The new value for the cell is: " + updatedCell.data());
  11.     console.log("The old value for that cell was: " + oldValue);
  12.     console.log("The values for each cell in that row are: " + updatedRow.data());
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement