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

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


Badge

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

icon

Best answer by bgooldfed 30 May 2022, 06:32

View original

2 replies

Userlevel 5
Badge +25

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!

Badge

Thank you so much!!

Leave a Reply