Trying to use alternate shading on a side-by-side question. | XM Community
Skip to main content
Solved

Trying to use alternate shading on a side-by-side question.

  • May 28, 2022
  • 2 replies
  • 30 views

Forum|alt.badge.img

I believe this is the correct Coding to use: jQuery("#"+this.questionId+" .ReadableAlt").css("background","#F8F8F8"); (thank you Sage!). But when I enter it into the Javascript page - it does nothing. What am I doing wrong??
image.png

Best answer by bgooldfed

Hi KMT,
The /*, */ and // symbols in javascript are used to type comments (kind of like notes in your code). Any text that has been commented out does not actually run as code.
Remove the /* and */ symbols from that line and your code should run (assuming it is correct).
Good luck!

2 replies

bgooldfed
Level 4 ●●●●
Forum|alt.badge.img+25
  • Level 4 ●●●●
  • Answer
  • May 30, 2022

Hi KMT,
The /*, */ and // symbols in javascript are used to type comments (kind of like notes in your code). Any text that has been commented out does not actually run as code.
Remove the /* and */ symbols from that line and your code should run (assuming it is correct).
Good luck!


Forum|alt.badge.img
  • Author
  • May 30, 2022

Thank you so much!!