Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(function () {
- var buttons = $('.hero-buttons').find('button');
- buttons.first().on('click', function () {
- console.log('Kliknięto mnie@!');
- });
- buttons.eq(1).one('click', function () {
- console.log('Kliknięto mnie ale drugi raz sie nie dam');
- });
- buttons.last().one('click', function () {
- buttons.off();
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement