Alternate Rows - Selectors

Alternate Rows – Selectors jQuery Cognizant Handson Program

Design a webpage that displays a customer information table.  The alternate rows of the table need to be coloured using jQuery as depicted in the web page image given below.  Refer to the notes for more clarifications.

script.js

$("tr:even").css("background-color", "lightpink");
$("tr:odd").css("background-color", "lightblue");
$("caption").css("background-color", "lightblue");

Similar Posts