Font awesome icon color

All WYSIWYG Web Builder support issues that are not covered in the forums below.
Forum rules
IMPORTANT NOTE!!

DO YOU HAVE A QUESTION OR PROBLEM AND WANT QUICK HELP?
THEN PLEASE SHARE A "DEMO" PROJECT.



PLEASE READ THE FORUM RULES BEFORE YOU POST:
http://www.wysiwygwebbuilder.com/forum/viewtopic.php?f=12&t=1901

MUST READ:
http://www.wysiwygwebbuilder.com/getting_started.html
WYSIWYG Web Builder FAQ
Post Reply
bertrand
 
 
Posts: 4
Joined: Sun Jun 04, 2017 4:42 pm

Font awesome icon color

Post by bertrand »

I have an icon and would like to change its color from JavaScript. I am too stupid to find the right style attribute. I can change the background color but cannot do it for the foreground color !
User avatar
Pablo
 
Posts: 23449
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Font awesome icon color

Post by Pablo »

With jQuery it will look something like this:

Code: Select all

$('#FontAwesomeIcon1').find('i').css('color', '#FF0000')
bertrand
 
 
Posts: 4
Joined: Sun Jun 04, 2017 4:42 pm

Re: Font awesome icon color

Post by bertrand »

Thanks the find 'i' was missing.
Post Reply