* TypeError: 'undefined' is not a function (evaluating '$('#tableCol').DataTable()'). How to solve?

* TypeError: 'undefined' is not a function (evaluating '$('#tableCol').DataTable()'). How to solve?

Adarsh94Adarsh94 Posts: 10Questions: 6Answers: 0

i have used jquery data tables and i am able to run my project. when i test other codes using jasmine it fails. So when i do maven build it shows the above error. Can anyone solve this issue asap.

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,542Questions: 1Answers: 10,476 Site admin
    Answer ✓

    Thanks for your question. As noted in the forum rules, please post a link to a running test case showing the issue so we can offer some help. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here.

    Allan

  • Adarsh94Adarsh94 Posts: 10Questions: 6Answers: 0

    Well i figured out why my test case is not running. it is because the spec file is unable to access the data table method written in javascript. Now i have solved the question with your help. thanks a lot

This discussion has been closed.