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: enter image description here

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();

enter image description here

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

Popular posts from this blog

Change php variable from jquery value using ajax (same page) -

How can I fetch data from a web server in an android application? -

jquery - How can I dynamically add a browser tab? -