Created
October 25, 2021 10:46
-
-
Save sonichandni/984139093f5772dfff3768e5c8e3fe5f to your computer and use it in GitHub Desktop.
check if css is exsist in specific element
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if ($("#h1").css("color") == "rgb(0, 128, 0)") { | |
down.innerHTML = "H1 has CSS style, color: green"; | |
} else { | |
down.innerHTML = "H1 has not CSS style, color: green"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment