Frage

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?

War es hilfreich?

Lösung

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.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top