Access a style property on the first matched element. This method makes it easy to retrieve a style property value from the first matched element.
Example:
Retrieves the color style of the first paragraph
$("p").css("color");
HTML:
<p style="color:red;">Test Paragraph.</p>
Result:
"red"
No comments:
Post a Comment