I have two button classes, when clicked, I want something to happen.
I have:
$('.btn-comment, .btn-youtube').click(function(){
This used to work when the buttons were static. They are now created ad hoc.
I have tried this:
$('.btn-comment, .btn-youtube').on('click', function(){
But no luck.