2

I have created a table using enlive template engine. what I have done, is create a singe table row and repeated that row up to the no of row needed dynamically. But, I have some problems update the each row's attribute class.

How can I set the class attribute for every table row dynamically, say even odd manner?

Abimaran Kugathasan
  • 31,165
  • 11
  • 75
  • 105

1 Answers1

2

There is a thread on the enlive mailing list where Christophe Grand explains how to do this.

I also share the feeling that if you can use nth-child selector it is way cleaner.

Nicolas Modrzyk
  • 13,961
  • 2
  • 36
  • 40