How can I Update the Javascript so the Results are Bolded | XM Community
Skip to main content
Solved

How can I Update the Javascript so the Results are Bolded

  • February 23, 2021
  • 2 replies
  • 155 views

chaz
Forum|alt.badge.img+3

Hi,
What changes need to made to the following Javascript so that the results will be bolded.
jQuery("#"+this.questionId+" td.c1:first").html("Label Text");
Thank you

Best answer by ChiragK

Not really sure what you're trying to do but based on your code to bold column text, here's the code.
jQuery("#"+this.questionId+" td.c1:first").html("Label Text").css("font-weight", "bold");

View original

2 replies

Forum|alt.badge.img+8
  • Level 2 ●●
  • 77 replies
  • Answer
  • February 24, 2021

Not really sure what you're trying to do but based on your code to bold column text, here's the code.
jQuery("#"+this.questionId+" td.c1:first").html("Label Text").css("font-weight", "bold");


chaz
Forum|alt.badge.img+3
  • Author
  • 12 replies
  • February 24, 2021

Hi ChiragK,
Nothing to hid. I want to add a header to a matrix question left hand side. TomG provided the Javascript code to do this but I thought it should be bolded to be more visible.
Your upgrade worked. Thanks very much.


Leave a Reply