Posted By

dreamstarter on 07/15/14


Tagged

row color ColdFusion Alternating currentrow


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

dreamstarter


Alternating Row Colors


 / Published in: ColdFusion
 

alternating row color snippet for outputting query results in a html table

  1. <cfoutput query="q">
  2. <cfset variables.n = CurrentRow MOD 2 + 1>
  3. <tr><td class="row#variables.n#">...</td></tr>
  4. </cfoutput>

Report this snippet  

You need to login to post a comment.