0

How could I incorporate .css("color" "#fff"); with the below:

$('.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.

1
  • 1
    Why does the style need to be applied inline? If you can't attach the #fff to the .exchange_text class, you could add another class i.e. .received and apply the colour to that in your css. Commented May 28, 2015 at 14:40

1 Answer 1

1

Either apply the color to 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();
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

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.

Ask question

Explore related questions

See similar questions with these tags.