javascript - Change font color to green for the text? -


i have below line in html code.

$('#myform #progress').html('<img src="images/ajax-complete.gif" /> successful.') 

i need change successful text color green when displayed. here how can apply font color green?

thanks!

you can following in jquery:

$('#myform #progress').css('color':'green');

or in css:

#myform #progress{ color: green}

also:

$('#myform #progress').html('<img src="images/ajax-complete.gif" /> <span style="color:green">successful</span>.')


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -