jquery - How to check if a particular CSS value exists -
why won't work?
browser = safari
<p style="color:blue;">foo</p> if ($("p").css(("color") === "blue")) { alert(1); }
thank you
it's syntax , brackets:
if ($("p").css("color") === "blue") { alert(1); }
jquery css
No comments:
Post a Comment