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
Post a Comment