Change background of htmltablerowelement in jquery
I am building an application in MVC3 C# 4.0

In my view, i have a table.  Each row has a class "myrowclass"
I can get the rows of the table in jquery by just doing $(".myrowclass")
It returns a collection of htmltablerowelement

Now I want to change the background of the rows but I am unable to do so. e.g.
htmltablerowelement.bgcolor = "green" doesn't work
htmltablerowelement.css="greencssclass" doesn't change the background either (greencssclass has background set to green).


Change background of htmltablerowelement in jquery
===

I am building an application in MVC3 C# 4.0

In my view, i have a table.  Each row has a class "myrowclass"
I can get the rows of the table in jquery by just doing $(".myrowclass")
It returns a collection of htmltablerowelement

Now I want to change the background of the rows but I am unable to do so. e.g.
htmltablerowelement.bgcolor = "green" doesn't work
htmltablerowelement.css="greencssclass" doesn't change the background either (greencssclass has background set to green).

