Last active
March 1, 2021 16:59
-
-
Save Pross/643d68b7be51222e70bb707bff22e5c9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function($){ | |
$(document).ready(function(){ | |
// This runs on ready function | |
// Add Copy+Pasta here | |
// assuming whut class is added to button group and we want the 2nd button | |
// if 3 buttons it would be 0,1,2 so we want child 1 | |
$('.whut').find('a').children().eq(1) | |
.on('click',function(e){ | |
e.preventDefault(); | |
// this is where you add your trigger. | |
// $(document).trigger('whatever'); | |
console.log('clicked'); | |
}); | |
}); | |
})(jQuery); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment