Jump to content

Apply Hex Color To Div With JQuery


phdphd

Recommended Posts

Hi All,

I am trying to apply some fading effect to a Div, for which I want also to set an hex color.

This works :

$('#myDiv').css('color', 'blue');
$('#myDiv').fadeIn(5000, function() { $(this).delay(3000).fadeOut(3000); });

This doesn't:

$('#myDiv').css('color', '#050709');
$('#myDiv').fadeIn(5000, function() { $(this).delay(3000).fadeOut(3000); });

Thanks !

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.