Getting TypeError: $(...).dataTable is not a function even with simplest example on VS2013

Getting TypeError: $(...).dataTable is not a function even with simplest example on VS2013

abhilashamishra17abhilashamishra17 Posts: 13Questions: 3Answers: 0

Trying to use DataTable in my MVC application. I have created a sample app, referenced DataTable from Nuget, added its link and css in _Layout.cshtml file. Still it doesn't seem to recognise it. Getting TypeError: $(...).dataTable is not a function even with simplest example on VS2013.

Answers

  • allanallan Posts: 64,032Questions: 1Answers: 10,555 Site admin

    One option is that you might be loading jQuery more than once. However, without a link to a test page showing the issue (as required in the forum rules) it is impossible to say for certain.

    Allan

  • abhilashamishra17abhilashamishra17 Posts: 13Questions: 3Answers: 0

    Thanks allan. I was able to fix it by removing the reference in bundle.

This discussion has been closed.