How can I add colour to alternative rows with repeated headers? | XM Community
Skip to main content

Screenshot (31).pngWhen I try to add colour to alternative rows with repeated headers, it adds colors to the headers. I want to add colour to alternative questions Could anyone help me with the Javascript code for this? Thank you in advance.

Use the below code:
jQuery("#"+this.questionId+" .ChoiceRow:odd").css("background","#d7d7d7");


Thanks a lot for your help :D


Hi rondev, is there a way to modify this code to specify which row I want to change the color for? For example, if I want to do that specifically for row #5?


Leave a Reply