I have a coldfusion page that displays records from a database. Some of these records might be empty, in which case the <td> element is empty with no text in it. I need a way to recognize if a <td> element is empty (does not have any data from the database) and then set the color of that td to red.
I could do this using a bunch of if statements in coldfusion, but I was wondering if there is a more efficient way of doing this with dhtml/css. I found something online that mentioned a css pseudo class :contains to check the innerText, but I've never done this before and your guidance is needed. tia,