Styling Highlight Question text to indicate interactive words/groups | XM Community
Skip to main content
Solved

Styling Highlight Question text to indicate interactive words/groups


Forum|alt.badge.img+2

I want to style text that is selectable in a highlight question so the user can easily see what’s interactive without having to hover over every line. There is no rich text editor in the text highlight edit section, so I’m wondering if there’s a way around that.

Best answer by Tom_1842

Hi, the below JavaScript will underline words that are selectable for a Highlight question.

jQuery("#"+this.questionId+" span.HLTextWord").css("text-decoration", "underline");

I found it on here.

View original

3 replies

Tom_1842
Level 8 ●●●●●●●●
Forum|alt.badge.img+28
  • Level 8 ●●●●●●●●
  • 876 replies
  • Answer
  • April 27, 2023

Hi, the below JavaScript will underline words that are selectable for a Highlight question.

jQuery("#"+this.questionId+" span.HLTextWord").css("text-decoration", "underline");

I found it on here.


Forum|alt.badge.img+2
  • Author
  • Level 1 ●
  • 2 replies
  • April 28, 2023

Thanks so much, Tom. Trying it now and will report back.


Forum|alt.badge.img+2
  • Author
  • Level 1 ●
  • 2 replies
  • April 28, 2023

This worked perfectly. Thanks a ton, Tom.


Leave a Reply