highlight rows based on cell values

highlight rows based on cell values

Hi all,

I'm new to JQuery so Ihought I'd post here to see if what I want to do is possible before spending ages trying to do it.

I have a table and each row has (amongst other things) three date/times formatted like this:

23-Feb-2010 11:20:45

One is an event time and the other two are deadlines. I want to highlight the row in a different color if the event time is after either of the deadlines.

Is this do-able? I'm using richfaces so my code would have to be formatted something like this:

<rich:jQuery selector="#table tr:etc etc" query="addClass('warn-row')"/>
<rich:jQuery selector="#table tr:etc etc" query="addClass('error-row')"/>

Thanks,
Brad.