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?
Page 1 / 1
Hello @jmcpherson ,
Paste the below code in the js(OnReady) of the descriptive question:
` jQuery("#"+this.questionId+" .QuestionText").css("background","YOUR_HEX_CODE");`
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
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.