How to change the color of answered text to black? | XM Community
Skip to main content
Question

How to change the color of answered text to black?

  • September 12, 2020
  • 3 replies
  • 61 views

I have a few questions, whose answers are in an essay format. When a participant enters text in that box, it appears grey. How to change the color of answered text to black?

3 replies

rondev
Level 6 ●●●●●●
Forum|alt.badge.img+22
  • Level 6 ●●●●●●
  • September 12, 2020

Use the below code:
jQuery("#"+this.questionId+" textarea, #"+this.questionId+" input[type='text']").css("color","#000");


  • Author
  • September 13, 2020

I tried using this in the custom CSS but the color stays grey.


rondev
Level 6 ●●●●●●
Forum|alt.badge.img+22
  • Level 6 ●●●●●●
  • September 13, 2020

Use it in the text entry question, under "Add javascript" option add the above code in Onready function.