rohanbairat3
asked on
Cell border color change using javascript
function somefunc(obj)
{
tab = obj
for (i=0;i<tab.cells.length;i+ +)
{
tab.cells[i].style.backgro und="red"
}
i pass my table object to change the cell color
but the cell border color doesnt change
here is the css it is using
TD
{
BORDER-RIGHT: whitesmoke thin solid;
BORDER-TOP: whitesmoke thin solid;
FONT-SIZE: 7pt;
BORDER-LEFT: whitesmoke thin solid;
BORDER-BOTTOM: whitesmoke thin solid;
FONT-FAMILY: Tahoma;
BACKGROUND-COLOR: whitesmoke;
FONT-COLOR: #0000CC
}
i need to change the bordercolor too ...
can i do that ?
thanks
rohan
{
tab = obj
for (i=0;i<tab.cells.length;i+
{
tab.cells[i].style.backgro
}
i pass my table object to change the cell color
but the cell border color doesnt change
here is the css it is using
TD
{
BORDER-RIGHT: whitesmoke thin solid;
BORDER-TOP: whitesmoke thin solid;
FONT-SIZE: 7pt;
BORDER-LEFT: whitesmoke thin solid;
BORDER-BOTTOM: whitesmoke thin solid;
FONT-FAMILY: Tahoma;
BACKGROUND-COLOR: whitesmoke;
FONT-COLOR: #0000CC
}
i need to change the bordercolor too ...
can i do that ?
thanks
rohan
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
{
tab.cells[i].style.backgro
tab.cells[i].style.borderR
tab.cells[i].style.borderL
tab.cells[i].style.borderT
tab.cells[i].style.borderB
}
this is how i got it
thanks for ur help guys
-rohan