Tag: css class using JQuery library

How can we modify css class using JQuery library.

December 26, 2009 | Filed Under JQuery | Leave a Comment

Suppose that Css class has following defination

.class
{
font-size:10px;
font-weight:normal;
color:#000000;
}

now we want to add border property on above class
so we should follow below code

$(".class").css("border","1px solid blue");

Where $(".class") name of css class.

now .class will automatically add border property in his class definition

Article written by urooj

© PHPInterviewQuestion.com 2009 - 2010

eXTReMe Tracker