AnsweredAssumed Answered

Discussion Thread

Question asked by HJ L on Jul 25, 2017
Latest reply on Jul 28, 2017 by James Jones

Hello,

 

Is there any way to highlight the instructor's name in the discussion thread? So far, I have tried to implement the following JS codes, but it highlights the names of all authors in the discussion page. Any suggestions would be greatly appreciated.

 

if($.inArray('teacher',ENV['current_user_roles']) === 2 ) {
      $('a.author').css("background-color", "yellow");
}

Outcomes