I recently discovered that TR can have background property in simple
html and in CSS but when i tried to reach TR element through
javascript document.getEle mentById(TR_id) .style.backgrou nd or
document.getEle mentById(TR_id) .background it doesn't work.
someone know how can I reach this property through javascript
p.s (in this case i can't use the td class name to reach a specific
row background like this :
if(document.get ElementsByTagNa me('td')[x].headers=='clas s_'+z)
document.getEle mentsByTagName( 'td')[x].style.backgrou nd=' '
)
thanks !
html and in CSS but when i tried to reach TR element through
javascript document.getEle mentById(TR_id) .style.backgrou nd or
document.getEle mentById(TR_id) .background it doesn't work.
someone know how can I reach this property through javascript
p.s (in this case i can't use the td class name to reach a specific
row background like this :
if(document.get ElementsByTagNa me('td')[x].headers=='clas s_'+z)
document.getEle mentsByTagName( 'td')[x].style.backgrou nd=' '
)
thanks !
Comment