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

How to change the color of answered text to black?

  • Sep 12, 2020 1:22 AM UTC
  • 3 replies
  • 86 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 ●●●●●●
  • Sep 12, 2020 12:06 PM UTC

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


  • Author
  • Sep 13, 2020 12:20 AM UTC

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


rondev
Level 6 ●●●●●●
Forum|alt.badge.img+22
  • Level 6 ●●●●●●
  • Sep 13, 2020 11:18 AM UTC

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