Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 82038

row select in table

$
0
0
var 123;

$(function() {

123 = $("#1234").dataTable({
"sScrollY": "209px",
"bPaginate": false,
"bScrollCollapse": true,
"bFilter": false,

"bAutoWidth" :true,
"bProcessing": true,
"sAjaxSource": "Data/Table_Browse_ClusterList.txt"

});

$("#1234 tbody tr").click( function( e ) {
if ( $(this).hasclass('row_selected') ) {
$(this).removeClass('row_selected');
}
else {
123.$('tr.row_selected').removeClass('row_selected');
$(this).addClass('row_selected');
}
});

-------------
I need to fix my source code. I want to select rows in table and do something with that rows but I can't select rows.
what's wrong?
I hope your help.

Viewing all articles
Browse latest Browse all 82038

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>