Font awesome icon color
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
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
-
bertrand
-

- Posts: 4
- Joined: Sun Jun 04, 2017 4:42 pm
Font awesome icon color
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 !
- Pablo
- Posts: 23896
- Joined: Sun Mar 28, 2004 12:00 pm
- Location: Europe
- Contact:
Re: Font awesome icon color
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
Thanks the find 'i' was missing.