Multiple selector works only for table #1
Multiple selector works only for table #1
TiTi
Posts: 1Questions: 0Answers: 0
[code]$('#example1,#example2').dataTable();
$('#example1,#example2').dataTable().fnAddData([...]);[/code]
-> Only table #example1 will be updated :-(
I guess it's a pain in the ass to handle a this.each for each publicly available function, only to ensure jQuery chaining. Am I wrong?
Might be interesting to throw a warning like "You can't use multiple selector" ?
$('#example1,#example2').dataTable().fnAddData([...]);[/code]
-> Only table #example1 will be updated :-(
I guess it's a pain in the ass to handle a this.each for each publicly available function, only to ensure jQuery chaining. Am I wrong?
Might be interesting to throw a warning like "You can't use multiple selector" ?
This discussion has been closed.