Highlighting rows first column not
Highlighting rows first column not
jlopes151
Posts: 8Questions: 0Answers: 0
Here's the page content I can highlight all but the first column???
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<!DOCTYPE html>
Testing DataTable
.row_selected {
background-color: #099cc !important;
}
var oTable;
$(document).ready(function() {
oTable = $("#fun_stuff_tbl").dataTable();
/* Add a click handler to the rows - this could be used as a callback */
$("#fun_stuff_tbl tbody tr").click( function( e ) {
if ( $(this).hasClass('row_selected') ) {
$(this).removeClass('row_selected');
}
else {
oTable.$('tr.row_selected').removeClass('row_selected');
$(this).addClass('row_selected');
}
});
});
Name
Address
City
Zip
John Green
132 Green Ave
Greeville Texas
02334
John Green
132 Green Ave
Greeville Texas
02334
John Green
132 Green Ave
Greeville Texas
02334
John Green
132 Green Ave
Greeville Texas
02334
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<!DOCTYPE html>
Testing DataTable
.row_selected {
background-color: #099cc !important;
}
var oTable;
$(document).ready(function() {
oTable = $("#fun_stuff_tbl").dataTable();
/* Add a click handler to the rows - this could be used as a callback */
$("#fun_stuff_tbl tbody tr").click( function( e ) {
if ( $(this).hasClass('row_selected') ) {
$(this).removeClass('row_selected');
}
else {
oTable.$('tr.row_selected').removeClass('row_selected');
$(this).addClass('row_selected');
}
});
});
Name
Address
City
Zip
John Green
132 Green Ave
Greeville Texas
02334
John Green
132 Green Ave
Greeville Texas
02334
John Green
132 Green Ave
Greeville Texas
02334
John Green
132 Green Ave
Greeville Texas
02334
This discussion has been closed.