Hi,
I want to change all label box colors. How to change label box background color in jquery?
How to change label box background color in jquery?
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Sunny SharmaRank #223 · 11.1K reputationPosted Sep 30, 2013, 4:02 AM EDT
$('label').css({background:"green"})
Replace 'label' with your label selector and "green" with any color you want.
vasanthasilvary55 reputationPosted Sep 30, 2013, 6:19 AM EDT
$(this).closest(".EntryRow").find(".label_name").css("background","#cf4f92"); Reference: http://stackoverflow.com/questions/13907854/change-label-background-colour-on-input-focus