Creative UI/UX Designers Question:
Download Job Interview Questions and Answers PDF
How to modify css class using JQuery library?
Answer:
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.
.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.
Download Creative User Interface UX Interview Questions And Answers
PDF
Previous Question | Next Question |
Can we apply css in div element using JQuery library? | Can we apply css in last child of parent using JQuery library? |