Created
February 21, 2016 20:00
-
-
Save bsa7/5b3f837896a7819ae98c to your computer and use it in GitHub Desktop.
Iterate object keys
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
t = document.getElementById(elementid) | |
for(var key in t) {console.log('key: ' + key + '\n' + 'value: ' + t[key]);} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment