Hi Eric,
I think u r not getting me .Iam explaining my situation.
Below r my code :-
for (i=0; i< arySelectedProductDtls.length; i++){LPFactorVO pf = (LPFactorVO)arySelectedProductDtls[i];
String row = "swb-row1";
if(i%2==0){
row = "swb-row1";
}
else{
row = "swb-row2";
}
<TR class="<%=row%>" id="aRow" >
<!--for checkbox --->
<TD><!--some code here--></TD>
<!--for item name-->
<TD><!--some code here--></TD>
<!--For Price-->
<TD><!--some code here--></TD>
<SCRIPT>
if(<%=strFinalValue%> <= <%=pf.getstrCost()%>

{ document.getElementById('aRow<%=i+1%>').bgcolor = 'brown';
}
</SCRIPT>
</TR>
}//end of for loop
Here is my two css class in my css file:-
.swb-row1{
background-color: #ffffff;
font-size: 8pt;
}
.swb-row2{
background-color: #eeeeee;
font-size: 8pt;
}
Iam actually showing row's bgcolor alternatively in different color.Now in last column iam checking one condition which comparing two values and if that condition match then only that row's bgcolor should change to different color.Now i think it is clear to u what iam exactly want to do.
Thanks & Regards
Bikash
[ June 30, 2004: Message edited by: Bikash Paul ]