To check if a number is even in javascript you can use the following snippet.
Sample Javascript
function NumberIsEven(input) { if (input % 2 == 0) return true; else return false; }
To check if a number is even in javascript you can use the following snippet.
function NumberIsEven(input) { if (input % 2 == 0) return true; else return false; }
To create zebra table effect with jQuery and CSS you can use the following snippet.
$("tr:odd").addClass("oddRowsEffect");
in the css you need something like
tr.oddRowsEffect{ /* background: choose a color; * /* color: choose a color; * }