:even and :odd (Select elements with an even index or odd index elements. The index starts from 0.)
:even and :odd (Select elements with an even index or odd index elements. The index starts from 0.)
Tags: even index element , odd index element
Code Snippet:
$(document).ready(function () {
$('tr:even').css('color', '#00FF00');
$('tr:odd').css('color', '#0000FF');
});
ActionScript - ActionScript 3 - Apache - AppleScript - ASP - Assembler - Bash - C - C# - C++ - ColdFusion - CSS - Delphi - DOS Batch - Fortran - HTML - iPhone - Java - JavaScript - jQuery - Lisp - MatLab - Maxscript - MXML - MySQL - Objective C - Other - Pascal - Perl - PHP - PL SQL - Prolog - Pseudocode - Python - Rails - SmallTalk - Smarty - SML - SPSS - SQL - SVN - Symfony - TCL - VB.NET - Visual Basic - XHTML - XML - XSLT
© 2000-2015 Xentrik.Net