Created
July 6, 2016 06:45
-
-
Save anandsunku/55366ba4ec10f9673ae34450f25e0864 to your computer and use it in GitHub Desktop.
functional dom manipulation
This file contains hidden or 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
var lbl1 = document.querySelectorAll("label"); | |
lbl1.forEach(function(ol){ | |
if(ol.textContent == "Username:") { | |
ol.style.backgroundColor = "#f00"; | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment