This is mvc 4 application with razor view. I made sure only single instance of jquery is loaded. BTW is jquery 1.9.0 compatible with dataTables 1.1 beta? This is my first time using dataTable.
<table id="studenttable"> <tr> <th>head1</th> <th>head2</th> <th>head3</th> <th>head4</th> </tr> @foreach (var item in Model) { <tr> <td>@item.data1</td> <td>@item.data2</td> <td>@item.data3</td> <td>@item.data4</td> </tr> } </table> <link rel="stylesheet" type="text/css" href="//cdn.datatables.net/1.10.0-beta.2/css/jquery.dataTables.css"> <script type="text/javascript" src="/Scripts/jquery-1.9.0.js"></script> <script type="text/javascript" src="/Scripts/jquery.dataTables.js"></script> <script> $(document).ready(function () { $("#studenttable").dataTable(); } ) </script>