Home »
MCQs »
jQuery MCQs
Which is the correct syntax to get the value of a CSS style attribute/property using the css() method?
80. Which is the correct syntax to get the value of a CSS style attribute/property using the css() method?
- css("propertyname");
- css(propertyname);
- css(".propertyname");
- css("#propertyname");
Answer: A) css("propertyname");
Explanation:
The correct syntax to get the value of a CSS style attribute/property using the css() method is: css("propertyname");