ColVis: Checkboxes not working.
ColVis: Checkboxes not working.
I'm using the ColVis plugin, it applies to my tables fine, shows the list of columns just fine, however, when I click on the checkbox to hide a column, nothing happens. When I look at the ColVis code (_fnDomColumnButton) $('input',this).attr('checked') is always true.
Any ideas? I don't know of a conflict that could be causing this.
Any ideas? I don't know of a conflict that could be causing this.
This discussion has been closed.
Replies
It appears that the ColVis plugin does not work with JQuery 1.6.1. I downloaded 1.5.2 and everything is working now.
Thanks,
Eric
Thanks,
Allan
I can't link to the app, sorry. However, I can tell you how to recreate it as I did. I suspected another JS file was in conflict. So, I downloaded the plugin, tested it as is before moving to my app directories, then copied over all of my JS files and started to eliminate one by one.
Here is the code that does not work. Sorry, I can't remember how to tag code, so I'll just paste in the script includes. This is the only code that I changed. I tried the minified and uncompressed 1.6.1, both don't work for me.
$(document).ready( function () {
$('.display').dataTable( {
"sDom": 'C<"clear">lfrtip'
} );
} );
Eric
Any solution?
Thanks
Allan