Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- In the DOM, from static HTML:
- <a class="slide-thumb" data-slide-idx="1" href="#">
- On page init:
- $('.slide-thumb').each(function() {
- console.log('idx: '+$(this).data('slide-idx'));
- });
- console out put:
- idx: undefined
Add Comment
Please, Sign In to add comment