Created
August 8, 2012 16:16
-
-
Save KazChe/3296299 to your computer and use it in GitHub Desktop.
get label's value from id - error message issue
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
labels = document.getElementsByTagName('label'); | |
len = labels.length; | |
for(var i = 0; i < len; i++) { | |
if(labels[i].htmlFor == elementId) { | |
errLabel= labels[i].innerHTML; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment