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

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

  • 2 October 2018
  • 3 replies
  • 75 views

Userlevel 1
Badge +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?
icon

Best answer by Anonymous 2 October 2018, 19:01

View original

3 replies

Hello @Taylor ,

Paste the following code in the js(onLoad) of the matrix question
`jQuery("tr.ReadableAlt").css({"background-color":" lightgray"});`
Userlevel 1
Badge +3
Thanks @Shashi , that worked perfectly!
> @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"});

Leave a Reply