How do alternate table row colours dynamically using css only? Else with javascript? Can i use them inside struts iterate tag?
ritu_kr
0
Newbie Poster
Recommended Answers
Jump to PostWhat do you mean by dynamically alternate row colours? Are you generating the html for the rows dynamically? If so, you'll have to dynamically indicate the class of the rows too. Example, in your css:
.row1 {background-color: black}; .row2 {background-color: white};
Then in the script used to …
All 3 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.