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

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

  • Oct 2, 2018 4:45 PM UTC
  • 3 replies
  • 196 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"});`
View original

3 replies

  • Answer
  • Oct 2, 2018 5:01 PM UTC
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
  • Oct 2, 2018 5:09 PM UTC
Thanks @Shashi , that worked perfectly!

  • Oct 2, 2018 5:12 PM UTC
> @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"});