Table rows even and odd different colouring in jQuery

The following code will show how to code differently rows colour in even and odd.

<!DOCTYPE html>
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js">
</script>
<script>
$(function() {
    var rows = $("tr");
    rows.filter(":even").css("background", "#FCD6A3");
    rows.filter(":odd").css("background", "#BEE3FA");
});
</script>
</head>
<body>
    <table width="100%">
        <tr>
            <td>First</td>
            <td>Second</td>
        </tr>
        <tr>
            <td>Third</td>
            <td>Fourth</td>
        </tr>
        <tr>
            <td>Fifth</td>
            <td>Sixth</td>
        </tr>
        <tr>
            <td>Seventh</td>
            <td>Eighth</td>
        </tr>
    </table>
</body>
</body>
</html>

Output :