Hi. I am creating an asp.net web site. Using GridView the website creates a table. Now my question is I want to write a javascript function that colors the text "NO" red within the table cells. Waiting for your reply.
johnroach1985
0
Junior Poster
Recommended Answers
Jump to PostWhy do you need Javascript if all you want to do is color the text? You can very well use CSS to do the same.
<html> <head> <title>Example</title> </head> <body> <table style="border: 1px solid green; color: red"> <tr> <td>Hello to all</td> <td>This is some dummy text</td> </tr> …
Jump to PostSeeing that you are using ASP, you can use the ASP constructs to do selective rendering.
<html> <head> <style> .wrong { color: red; } .right { color: green; } </style> <title>Example</title> </head> <body> <table style="border: 1px solid green;"> <tr> <% dim i for i = 1 to …
All 6 Replies
~s.o.s~
2,560
Failure as a human
Team Colleague
Featured Poster
johnroach1985
0
Junior Poster
~s.o.s~
2,560
Failure as a human
Team Colleague
Featured Poster
johnroach1985
0
Junior Poster
~s.o.s~
2,560
Failure as a human
Team Colleague
Featured Poster
johnroach1985
0
Junior Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.