Changing background color of a single question | XM Community
Skip to main content
Hi. Could someone help me with the javascript to set the background color of a single 'descriptive text' type question to a specific hex code?
Hello @jmcpherson ,



Paste the below code in the js(OnReady) of the descriptive question:



` jQuery("#"+this.questionId+" .QuestionText").css("background","YOUR_HEX_CODE");`
Thanks! That worked!

Leave a Reply