Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var xTick = document.getElementsByClassName('some class name')
- console.log(xTick)
- output:
- HTMLCollection []
- > 0: text
- > 1: text
- > 2: text
- ...
- > 8: text
- > 9: text
- length: 10
- > __proto__: HTMLCollection
- console.log(xTick.length)
- output: 0
- console.log(xTick[0])
- output: undefined
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement