Is it possible to change the CSS class of an entire table row using JavaScript?
egoche
15
Newbie Poster
Recommended Answers
Jump to PostYes.
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 …
All 2 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.