I have used DataTables with MVC 3 but I'm now trying to incorporate it with MVC 4. The following line has been added to BundleConfig.cs:
bundles.Add(new ScriptBundle("~/bundles/DataTables").Include("~/Scripts/DataTables*"));
This is the error that is displayed:
Unhandled exception at line 969, column 5 in http://localhost:51987/
0x800a1391 - Microsoft JScript runtime error: '$' is undefined
<script type="text/javascript">
$('#Main').dataTable({
"bPaginate": true,
"bFilter": true,
"bSort": true,
"bStateSave": true
});
</script>
I just need some basic code to get this started.
Thanks.
bundles.Add(new ScriptBundle("~/bundles/DataTables").Include("~/Scripts/DataTables*"));
This is the error that is displayed:
Unhandled exception at line 969, column 5 in http://localhost:51987/
0x800a1391 - Microsoft JScript runtime error: '$' is undefined
<script type="text/javascript">
$('#Main').dataTable({
"bPaginate": true,
"bFilter": true,
"bSort": true,
"bStateSave": true
});
</script>
I just need some basic code to get this started.
Thanks.