Home »
MCQs »
jQuery MCQs
Which is the correct syntax to set the value of a CSS style attribute/property using the css() method?
81. Which is the correct syntax to set the value of a CSS style attribute/property using the css() method?
- css("propertyname"="value");
- css("propertyname","value");
- css("propertyname":"value");
- css("propertyname":="value");
Answer: B) css("propertyname","value");
Explanation:
The correct syntax to set the value of a CSS style attribute/property using the css() method is:
css("propertyname","value");