Title: JavaScript functions do not work
Last modified: December 13, 2017

---

# JavaScript functions do not work

 *  Resolved [spiroumz](https://wordpress.org/support/users/spiroumz/)
 * (@spiroumz)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/javascript-functions-do-not-work/)
 * Hi
 * I use TablePress and I’m very happy with that Plugin!
 * Since a few weeks new tables can’t use the JavaScript functions (search, sort,
   etc.). There are tables where it works but other tables do not work. I updated
   WordPress and all Plugins but that did not help. I get this error on the developer
   view:
 * jquery.datatables.min.js?ver=1.9:24 Uncaught TypeError: Cannot set property ‘
   _DT_CellIndex’ of undefined
    at Ga (jquery.datatables.min.js?ver=1.9:24) at M(
   jquery.datatables.min.js?ver=1.9:16) at HTMLTableRowElement.<anonymous> (jquery.
   datatables.min.js?ver=1.9:16) at jquery.js?ver=1.12.4:2 at Function.map (jquery.
   js?ver=1.12.4:2) at a.fn.init.map (jquery.js?ver=1.12.4:2) at ma (jquery.datatables.
   min.js?ver=1.9:16) at e (jquery.datatables.min.js?ver=1.9:92) at HTMLTableElement.
   <anonymous> (jquery.datatables.min.js?ver=1.9:92) at Function.each (jquery.js?
   ver=1.12.4:2)
 * Do somebody know what I can try to do?

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/javascript-functions-do-not-work/#post-9777883)
 * Hi,
 * thanks for your question, and sorry for the trouble.
 * This indicates that the table doesn’t have a perfectly rectangular structure.
   This could e.g. be caused by using `#colspan#` or `#rowspan#` in the table. Are
   you using those?
    If not, there’s most likely some invalid HTML code in the table,
   for example missing quotation marks `"` in some HTML parameter.
 * Can you please post a link to the page with the table where this problem happens,
   so that I can take a direct look? Thanks!
 * Regards,
    Tobias
 *  Thread Starter [spiroumz](https://wordpress.org/support/users/spiroumz/)
 * (@spiroumz)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/javascript-functions-do-not-work/#post-9780013)
 * Hi Tobias
 * Thank you very much for your valuable hint! It realy was a html error in the 
   cell value. So it was my fault and your plugin works very well 😉
 * Cheers,
    Michael
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/javascript-functions-do-not-work/#post-9780295)
 * Hi,
 * no problem, you are very welcome! 🙂 Good to hear that this helped!
 * Best wishes,
    Tobias
 * P.S.: In case you haven’t, please [rate TablePress](https://wordpress.org/support/plugin/tablepress/reviews/)
   here in the plugin directory. Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘JavaScript functions do not work’ is closed to new replies.

 * ![](https://ps.w.org/tablepress/assets/icon.svg?rev=3192944)
 * [TablePress - Tables in WordPress made easy](https://wordpress.org/plugins/tablepress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/tablepress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/tablepress/)
 * [Active Topics](https://wordpress.org/support/plugin/tablepress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/tablepress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/tablepress/reviews/)

## Tags

 * [javascript](https://wordpress.org/support/topic-tag/javascript/)
 * [sort](https://wordpress.org/support/topic-tag/sort/)

 * 3 replies
 * 2 participants
 * Last reply from: [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * Last activity: [8 years, 6 months ago](https://wordpress.org/support/topic/javascript-functions-do-not-work/#post-9780295)
 * Status: resolved