Created
March 17, 2016 20:29
-
-
Save edinsoncs/33361c558f79950bc9bf to your computer and use it in GitHub Desktop.
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
| function itemsDom(item, tag) { | |
| var capture = document.getElementsByTagName(tag); | |
| var item = capture.item(item); | |
| if(item != 2) { | |
| return item | |
| } | |
| else { | |
| console.log(item); | |
| } | |
| } | |
| itemsDom(1, 'li'); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment