javascript - js dataTable not working -
i dont know im doing wrong. have normal table this:
<table id="table_list_values"> <thead> <tr> <th> seq </th> <th> order </th> <th> code </th> <th> description </th> <th> label code </th> </tr> </thead> </table>
nothing anormal. then, populate datatable have make ajax call once press buttom(not before alse). returns me alot of data how table being display:
what have make paginate? here i've tried:
"bpagination:"
$('#listvalues').datatable( { "bpaginate": true } );
"blengthchange"
$('#listvalues').datatable( { "blengthchange": false } );
note: of them wrapped in $(document).ready(function(){....})
i have table work correctly adding $("#mytable").datatable();
what im doing wrong? if else need it, please let me know.
the table id in html "table_list_values" , datatable function looking #listvalues
anytime see datatable looks odd ie no paging, columns off, jquery ui styling not applied, odds selector or table html
Comments
Post a Comment