Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $('.thumb').each(function (i) {
- $(this).click(function () {
- alert (i+1); //index starts with 0, so add 1 if you want 1 first
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement