SHARE
TWEET

Untitled

a guest Jul 22nd, 2019 55 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var xTick = document.getElementsByClassName('some class name')
  2.      
  3. console.log(xTick)
  4. output:
  5.     HTMLCollection []
  6.     > 0: text
  7.     > 1: text
  8.     > 2: text
  9.     ...
  10.     > 8: text
  11.     > 9: text
  12.       length: 10
  13.     > __proto__: HTMLCollection
  14.  
  15.  
  16. console.log(xTick.length)
  17. output: 0
  18.  
  19.  
  20. console.log(xTick[0])
  21. output: undefined
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top