title: How to paginate with datatables jquery
body: <pre><code>      $.ajax({
    type: 'GET',
    url: 'http://staging.me/api/v1/orders',
    dataType: 'json',
    success: function(jsonData) {
        $('#order-table').DataTable({
          "bPaginate": true,
          "bSort": false,
          "bInfo": false,
          "iTotalRecords": jsonData.meta.pagination.total,
          "aaData": jsonData.data,
          "aoColumns": [
              { "mDataProp": "payment_ref_id" },
              { "mDataProp": "purchased_at" },
              {"mDataProp": "order_history.data[0].internal_status_code",
                     "render": function ( data, type, row, meta ) {
                          if(row.order_history.data[0].internal_status_code==="ORD_INITIATED") {
                              return "Order Initiated"
                          } else if(row.order_history.data[0].internal_status_code==="PAYMENT_INITIATED") {
                              return "Payment Intiated"; //Show the latest Order status
                         } else {
                             return row.order_history.data[0].internal_status_code;
                         }
                   }
              },
              { "mDataProp": "payment_details.data[0].name" },
              {"mDataProp": "id",
                          "render": function( data, type, row, meta ) {
                             return '&lt;button type="button" class="btn btn-warning btn-sm" id="'+data+'"&gt;View&lt;/button&gt;';
                          }
              }
          ]
      });
  </code></pre>
  
  <p>The json data that i get is in the following link with meta </p>
  
  <p><a href="https://jsfiddle.net/avg2pa89/" rel="nofollow">https://jsfiddle.net/avg2pa89/</a></p>
  
  <p>Please could someone help me how do i call the next and previous links in my meta with datatables.</p>