Jul-19-2023, 11:51 AM
Hi Team,
Am trying to find syntax for html.replace to replace color of the td with specific text, for eg: If text A, color Green, if text B, color Red.
I tried like below but, it doesn't seem to work at all, TABLE:
1234 ABCDEF TEXT A
5678 ABCDEF TEXT B
0987 ABCDFEF TEXT A
Am trying to find syntax for html.replace to replace color of the td with specific text, for eg: If text A, color Green, if text B, color Red.
I tried like below but, it doesn't seem to work at all, TABLE:
1234 ABCDEF TEXT A
5678 ABCDEF TEXT B
0987 ABCDFEF TEXT A
html = html.replace("<thead>","<thead style=\"background-color:#00FF00\">") html2 = html2.replace("<td=TEXT A>","<td style=\"background-color:#00FF00\">") html3 = html3.replace("<td=TEXT B>","<td style=\"background-color:##FF0000\">")