My jQuery Datatables Report Fiddle

Report

by Eric Pias

HTML

<script src="//code.jquery.com/jquery-1.9.1.js"></script>
<script src="http://code.jquery.com/ui/1.9.2/jquery-ui.js"></script>
<link rel="stylesheet" href="http://code.jquery.com/ui/1.9.2/themes/base/jquery-ui.css">
<link rel="stylesheet" href="//cdn.datatables.net/1.10.1/css/jquery.dataTables.css">
<link rel="stylesheet" href="//cdn.datatables.net/responsive/1.0.0/css/dataTables.responsive.css">
<script src="//cdn.datatables.net/responsive/1.0.0/js/dataTables.responsive.js"></script>
<table id="example" class="display" cellspacing="0" width="100%">
        <thead>
            <tr>
                <th>First Name</th>
                <th>Last Name</th>
                <th>Address</th>
                <th>City</th>
                <th>State</th>
                <th>Zip</th>
                <th>Total</th>
                <th>Item</th>
                <th>Price</th>
                <th>Quantity</th>
                <th>Total</th>
            </tr>
        </thead>
 
 
        
    </table>

JavaScript

$(document).ready(function() {
    var table = $('#example').DataTable( {
        responsive: true,
        
        //data: [["Sam", "Parks","100 Main St.","New Haven", "CT", "06100", "$80","Item1","$10","4","$40"]]
        "ajax": function (data, callback, settings) {
        debugger;
          callback([["Sam", "Parks","100 Main St.","New Haven", "CT", "06100", "$80","Item1","$10","4","$40"]]);
        }
    } );
    
    //setInterval( function () {
    //  table.ajax.reload();
    //}, 30000 );
} );