Reputation: 79
I have this code for change a text color on page. Switching works good, but the cookie does not save any changes.
Any idea what's wrong?
$(".white").click(function(){ $('.welcome h1,.box p, .newsletter, .responsive, .beauti, .unlimited,.flex-active').css("color","#ffffff"); if( $.cookie('color') != undefined) { $('.welcome h1,.box p, .newsletter, .responsive, .beauti, .unlimited,').css('color', 'url(' + $.cookie('color') + ')');}
Thanks!
Upvotes: 0
Views: 95
Reputation: 4022
You can't use url(xxx)
for colors. It should be HEX, RGB or HSL
Upvotes: 2