Communities for your favorite technologies. Explore all Collectives
Stack Overflow for Teams is now called Stack Internal. Bring the best of human thought and AI automation together at your work.
Bring the best of human thought and AI automation together at your work. Learn more
Find centralized, trusted content and collaborate around the technologies you use most.
Stack Internal
Knowledge at work
Bring the best of human thought and AI automation together at your work.
How could I incorporate .css("color" "#fff"); with the below:
.css("color" "#fff");
$('.exchange_text').html('Image Received').fadeIn();
I would like to have my .html text to be a different color, in this line only; so inline.
.html
.exchange_text
.received
Either apply the color to exchange_text
exchange_text
$('.exchange_text').css("color", "#fff").html('Image Received').fadeIn();
Or use a span and color it
$('.exchange_text').html('<span style="color: #fff">Image Received</span>').fadeIn();
Add a comment
Required, but never shown
By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.
Start asking to get answers
Find the answer to your question by asking.
Explore related questions
See similar questions with these tags.
.exchange_textclass, you could add another class i.e..receivedand apply the colour to that in your css.