2
Contributors
2
Replies
5
Views
7 Years
Discussion Span
Last Post by egoche
0

Yes.

To assign a class

obj.className = 'myclass'

To add a class

obj.className += ' myclass' // NOTE the leading blank

Existing class(es) can also be removed.

To refer to the row in question use something like

var obj = document.getElementById('myspecialrow')

or in the more general case

var obj = document.getElementById{'myspecialtable'}.rows[myspecialrownum] // where "myspecialrownum" is the index of 'myspecialrow', starting from zero

For a completely different approach, this post http://www.daniweb.com/forums/post1213631.html#post1213631 shows how to manipulate class declarations (which makes it possible to change the appearance of multiple rows all at once).

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.