adjusting table content with javascript by enumerating rows

Posted by Tom on Stack Overflow See other posts from Stack Overflow or by Tom
Published on 2010-04-13T07:05:24Z Indexed on 2010/04/13 7:13 UTC
Read the original article Hit count: 283

Filed under:

I have a table row with 4 columns on my ecommerce site and I want to replace the content of 1st column if total amount in last column (TD class "total") is over 10 EUR.

How can I do this with javascript only, I guess somehow to enumerate through the table rows and look for a correct row (one with the last column class as total) and then access the content of 1st column on this row but how?

© Stack Overflow or respective owner

Related posts about JavaScript