In this post we are giving you odd even function tutoral. this odd even function demo with table row. usign this function you can altermate row color dynamic table. Coloring odd/even rows of lists. you can also use for dynamic ul li coloring.
nicesnippets.com giving you best way of implementation of Odd Even Class. we are giving you free source code with live demo.
nicesnippets.com For Snippets |
nicesnippets.com For Tutorials |
nicesnippets.com For Live Demo |
nicesnippets.com For Live HTML Editor |
nicesnippets.com For Live HTML Editor |
nicesnippets.com For Online Counter |
$(document).ready(function () {
$("table tr:even").css("background-color", "yellow");
$("table tr:odd").css("background-color", "pink");
});
<table class="table">
<tbody>
<tr>
<td>nicesnippets.com For Snippets</td>
</tr>
<tr>
<td>nicesnippets.com For Tutorials</td>
</tr>
<tr>
<td>nicesnippets.com For Live Demo</td>
</tr>
<tr>
<td>nicesnippets.com For Live HTML Editor</td>
</tr>
<tr>
<td>nicesnippets.com For Live HTML Editor</td>
</tr>
<tr>
<td>nicesnippets.com For Online Counter</td>
</tr>
</tbody>
</table>