You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How can I use the data-color property or any other method to set the color if individual entries? I can get the value as data-color attribute. But I can't use it in the style attribute.
The text was updated successfully, but these errors were encountered:
Use this (jquery)
$(document).ready(function () {
jQuery("a.time-entry").each(function() {
var background = jQuery(this).data("bgcolor"); //catching color
jQuery(this).css('background-color',background);//using it
});
});
How can I use the data-color property or any other method to set the color if individual entries? I can get the value as data-color attribute. But I can't use it in the style attribute.
The text was updated successfully, but these errors were encountered: