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

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

  • 31 March 2022
  • 2 replies
  • 116 views

Badge +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!

icon

Best answer by rondev 31 March 2022, 13:29

View original

2 replies

Userlevel 7
Badge +22

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

Badge +2

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

Leave a Reply