Skip to content

Instantly share code, notes, and snippets.

@sonichandni
Created October 25, 2021 10:46
Show Gist options
  • Save sonichandni/984139093f5772dfff3768e5c8e3fe5f to your computer and use it in GitHub Desktop.
Save sonichandni/984139093f5772dfff3768e5c8e3fe5f to your computer and use it in GitHub Desktop.
check if css is exsist in specific element
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