Hi friends ,
Would you like to tell me that i have a CSS in which there is a class named as header which is given below:
Suppose that Css class has following definition
.header
{
font-size:10px;
font-weight:normal;
color:#000000;
}
If I want to add another css property through jQuery then what will be the code?
Add CSS property using jQuery
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.


Dorababu MekaRank #457 · 5.5K reputationPosted Dec 13, 2011, 6:48 PM EST
Pankaj RanaRank #2,270 · 620 reputationPosted Dec 13, 2011, 7:35 PM EST
where element is where you want to add css class
add latest jquery first
for more http://api.jquery.com/addClass/
SairamRank #5,130 · 310 reputationPosted Jan 2, 2012, 1:04 AM EST