change background color for the statement part in a side by side question using javascript | XM Community
Skip to main content
Solved

change background color for the statement part in a side by side question using javascript

  • March 31, 2022
  • 2 replies
  • 151 views

Forum|alt.badge.img+2

Hello, I am trying to change the background color of the statement column only in the side-by-side question. (Change the color for the "Please rate the song" column only).
Picture1.png
I have been trying using JS for this:
jQuery("#"+this.questionId+"QuestionStatementBody").css("background","#323531");

But it seems that there is no "QuestionStatementBody" option, can anyone help provide a solution?
Thank you so much for your help in advance!

Best answer by rondev

Use this code:
jQuery("#"+this.questionId+" th.c1").css("background","#323531");

2 replies

rondev
Level 6 ●●●●●●
Forum|alt.badge.img+22
  • Level 6 ●●●●●●
  • Answer
  • March 31, 2022

Use this code:
jQuery("#"+this.questionId+" th.c1").css("background","#323531");


Forum|alt.badge.img+2
  • Author
  • April 2, 2022

https://community.qualtrics.com/XMcommunity/discussion/comment/45042#Comment_45042Thank you so much!! This works perfectly! I appreciate it.