datatable not showing records

datatable not showing records

chakshusonichakshusoni Posts: 5Questions: 4Answers: 0
 <link rel="stylesheet" type="text/css" href="//cdn.datatables.net/1.10.4/css/jquery.dataTables.min.css"/>
        <script type="text/javascript" 

src="<my path>/jquery-1.11.3.min.js"></script>
<script type="text/javascript"
src="//cdn.datatables.net/1.10.4/js/jquery.dataTables.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$('#demo').html('<table cellpadding="0" cellspacing="0" border="0" class="display" id="DataTable" />');
$('#DataTable').dataTable( {
'data': rowData,
'columns':colData
} );
} );

above is showing the title of all columns of my sharepoint list, but not showing the data in that list.

This discussion has been closed.