title: csrf token set as post parameter while deleting action in Jtable (Jquery )
body: <p>Hi i'm trying to add csrf token in post while deleting record in jtable its not working but listAction &amp; updateAction is working fine.</p>
  
  <p>My Code snippets  :-</p>
  
  <pre><code>$(document).ready(function () {
      $('#main-content').jtable({
          title: ' Data',
          selecting: true, //Enable selecting
          multiselect: true, //Allow multiple selecting
          selectingCheckboxes: true, //Show checkboxes on first column
          paging: true, //Enable paging
          pageSize: 10, //Set page size (default: 10)           
          actions: {
              listAction:"${pageContext.request.contextPath}/mycontroller/all"  ,
             // createAction:"${pageContext.request.contextPath}/mycontroller/create",
              updateAction:"${pageContext.request.contextPath}/mycontroller/edit",
              deleteAction:"${pageContext.request.contextPath}/mycontroller/delete"
          },
          fields: {
              code: {
                  title:'Code',
                  width: '25%',
                   key: true,
  
                  edit:true,
                  input: function (data) {
                      if (data.value) {
                          return '&lt;input type="text" readonly class="jtable-input-readonly" name="code" value="' + data.value + '"/&gt;';
                      }
                  },
  
                },
              name: {
                  title: 'Name',
                  width: '25%',
                  create:true,
                  edit:true
              },
              craetedTs: {
                  title: 'Created',
                  width: '25%',
                  edit:false
              },
  
  
              modifiedTs: {
                  title: 'mdate',
                  width: '25%',
                  edit:true,
                  input: function (data) {
                       if (data.value) {
                           mdate='';
  
                           var date = new Date();
                           var options = {
                               year: "numeric", month: "2-digit",
                               day: "2-digit", hour: "2-digit", minute: "2-digit" ,second:"2-digit"
                           };
                          today=date.toLocaleTimeString("en-us", options);
                          today=today.replace(',', '');
                        return '&lt;input type="text" readonly class="jtable-input-readonly" name="modifiedTs" value="' + today + '"/&gt;';
                       }
                  } 
              },
               _csrf: {
                    visibility: 'hidden',
                    edit:true,
                    input: function (data) {
                        return '&lt;input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}" /&gt;';
  
                     }
              }
  
          }
  
      });
       $('#main-content').jtable('load',{'${_csrf.parameterName}' : '${_csrf.token}'});
  
    //Delete selected 
      $('#DeactiveID').button().click(function () {
             var $selectedRows = $('#main-content').jtable('selectedRows');
             $('#main-content').jtable('deleteRows', $selectedRows);
         });
  
  });
  </code></pre>
  
  <p>Even i tried for deleting code bellow:-</p>
  
  <pre><code>deleteAction: function (postData) {
      return $.Deferred(function ($dfd) {
          $.ajax({
              url: '/Demo/DeleteStudent',
              type: 'POST',
              dataType: 'json',
              data: '${_csrf.parameterName}' + "=" +'${_csrf.token}' ,
              success: function (data) {
                  $dfd.resolve(data);
              },
              error: function () {
                  $dfd.reject();
              }
          });
      });
  }
  </code></pre>
  
  <p>But when i checked delete action url the entire method was reflecting</p>