Click here to Skip to main content
15,879,613 members
Please Sign up or sign in to vote.
2.33/5 (2 votes)
Hello All,

I am little new to Jquery, I have search net for my solution but havent got anything.

In JQuery I need to check what is the font-color of label.

I m working on .aspx page.

1 solution

HTML code :

<label for="lblColor" id="lblColor" style="color:blue"> Label Color </label>

JQuery Code :

var lblColor = $('#lblColor').css('color');


rgb(0, 0, 255)

You can Test above on JsFiddler (Click Run Button) :[^]

I hope this will help to You.
Share this answer
salah9 8-Jul-13 4:55am really worked
Sampath Lokuge 8-Jul-13 5:03am    
@salah9 Glad to hear that it helped!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900