Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- window.onload = function () {
- var _index = // Index of the div you want to access
- var _divHandle = document.querySelectorAll("div-class-name")[_index];
- // Do what you want with _divHandle
- }
Add Comment
Please, Sign In to add comment