How to shade a matrix table within a cutom themed survey? | XM Community
Skip to main content
Solved

How to shade a matrix table within a cutom themed survey?

  • October 2, 2018
  • 3 replies
  • 146 views

Forum|alt.badge.img+3
I have two very long matrix tables within my survey, and would like to alternatively shade each item in the matrix table to make it a little more readable. I went into "Look & Feel" to edit this, but it appears that I can't because of my company's custom theme. Is there a way around this?

Best answer by Anonymous

Hello @Taylor , Paste the following code in the js(onLoad) of the matrix question `jQuery("tr.ReadableAlt").css({"background-color":" lightgray"});`

3 replies

  • Answer
  • October 2, 2018
Hello @Taylor , Paste the following code in the js(onLoad) of the matrix question `jQuery("tr.ReadableAlt").css({"background-color":" lightgray"});`

Forum|alt.badge.img+3
  • Author
  • October 2, 2018
Thanks @Shashi , that worked perfectly!

  • October 2, 2018
> @Taylor said: > Thanks @Shashi , that worked perfectly! You can also use following code in js(onLoad) jQuery("tr.ChoiceRow").each(function(index){ jQuery(" td:odd", this).css({"background-color":" lightgray"}); }); jQuery("tr.Answers th:odd").css({"background-color":" lightgray"});