Modifying table row attributes using Javascript

Posted on: Sep 05, 2007 by wenbert

Here is a quick and simple tutorial to modify table row attributes. The tutorial assumes that you already have a class assigned for the TR tag – let’s say you are trying to do a zebra-style table where each row has a different color.

In my case, I tried to assign a class to the TD, but it won’t work because the class from the TR prevails in some browsers – and yes, I am no CSS expert. So, I came up with this solution to solve my problem.


Subscribe to comments Comment | Trackback |
Post Tags:

Browse Timeline


Add a Comment


XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">


© Copyright 2007 eKini Web Developer Blog . Thanks for visiting!