How to use DataTable @foreach values
How to use DataTable @foreach values
Gurunathan
Posts: 1Questions: 1Answers: 0
I am using DataTable for my MVC project in view page I have following code
$(document).ready( function () { var table = $('#myTable').DataTable(); } );I have attached the table code image
I added both css and script file needed for DataTable. UI is coming perfectly but typing on search box and filtering not working.
I need to add any other code or where i made mistake kindly help....
This discussion has been closed.
Answers
Your foreach loop is creating multiple tbody tags. That is not valid in DataTables.