I'm working with the JQuery library FullCalendar
and I have a function that paints certain calendar lines according to a condition.
The function works perfectly in Internet Explorer, but in Goolge Chrome the lines are not painted.
I have tried to change .css('background-color', '#FFFFFF;')
by .style.backgroundColor="#FFFFFF;"
, but nothing happens.
What is the best way to change the background color of an element to be correctly displayed in Google Chrome? Below is the code. The symbols '>'
, '<'
, '&&'
, etc. have been replaced by the corresponding HTML entities because this function is in a .XHTML
of JSF file.
if(timeSlot >= str && timeSlot < obj.horaTermino)
//Change 13 and 18 according to what you need
{
$(this).closest('tr').css('background-color', '#FFFFFF;');
//$(this).closest('tr').style.backgroundColor="#FFFFFF;";
}