I have a table that has a class name partnerGridClass. I would like to set one of the rows background colors that corresponds to a certain index n. n is just a javascript variable.
$("table.partnerGridClass tbody tr:nth-child(n)").css("background-color", "#CCCCCC");
What I have above is not working for selecting the nth row. Does anyone know how to do this?