Creating a new notification system where I need to highlight a specific comment once it has been scrolled to.
I initially thought of implementing a background color change timeout, but I'm facing some issues with it...
Check out this example:
I have temporarily disabled scrollIntoView() as it was causing disruptions in the jsfiddle environment.
$(document).ready(function(){
var commentid = "comment";
//document.getElementById(commentid).scrollIntoView();
$(commendid).css('background-color', 'red');
});
This is the code, any idea why the background color isn't changing as expected?