I have something like this:
<tr id='<%=currentRow %>' onclick="SetBackgroundColor(this)" style="background-color:Yellow">
When i click on a row i want to change its background color and i did like this:
function SetBackgroundColor(rowId)
{
$(rowId).css("background-color", "#000000");
}
but i don't know why it doesn't work. Any suggestions please?