Alternating Row Color with Repeated Headers | Experience Community
Skip to main content
Question

Alternating Row Color with Repeated Headers

  • Aug 19, 2019 6:51 PM UTC
  • 1 reply
  • 34 views

Currently, I have repeated headers for lengthy inventories. I would like to have the responses to alternate coloring along with the header for that response. I have this as my code currently, but this only makes the headers a different color as this is the alternating row. jQuery("tr.ReadableAlt").css({"background-color":" lightgray"}); Is there a good way to change or add to this code, to get the desired result.

1 reply

Tom_1842
Level 8 ●●●●●●●●
Forum|alt.badge.img+28
  • Level 8 ●●●●●●●●
  • Jan 11, 2023 4:34 PM UTC

Hi there, try using the below:
jQuery("#"+this.questionId+" .ChoiceRow:odd").css("background","#F8F8F8");