DataTables警告:尝试在不是表的节点上初始化DataTable:FORM [英] DataTables warning: Attempted to initialise DataTables on a node which is not a table: FORM
问题描述
任何人都有任何指针? Google似乎无法帮助您寻找帮助。
干杯
尼克
更新:
这仍然是我的一个问题。任何人都可以帮助或指向正确的方向?
你可能在datatable上使用了一个id,而你也在声明另一个项目在相同的页面中具有相同的ID。
我有同样的问题:
我的代码:
< div class =modal fade span3 ui-corner-allid =checkingstyle =显示:无>
我也有
< table class =table table-nomargin dataTable table-borderedid =checking>
我重新命名了元素的id,它工作;)
I have this error message coming up after I have deployed DataTables inside of my application. I cannot see where this would be coming from as I haven't declared anything in my JS that would cause it. All the tables have got unique names and so do my divs. I have found this which was the same issue but his workaround doesn't seem to apply to my problem:
Anyone have any pointers? Google doesn't seem to be able to help so looking at you guys for assistance.
Cheers Nick
UPDATE:
This is still causing me an issue. could anyone assist or point in the right direction?
You are probably using an id on the datatable whereas you are also declaring another item in the same page with the same id.
I had the same problem:
I had this in my code:
<div class="modal fade span3 ui-corner-all" id="cheques" style="display: none">
and I also had
<table class="table table-nomargin dataTable table-bordered" id="cheques">
I renamed on of the element's id and it worked ;)
这篇关于DataTables警告:尝试在不是表的节点上初始化DataTable:FORM的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!