Answer the question
In order to leave comments, you need to log in
How to set a metric target for buttons with the same class?
There are many buttons on the site with the same .button-submit class, I want to put an onclick metric event on them, but the code that displays these buttons is somewhere in the wilds of files.
I would like some kind of script that can be thrown, for example, in the header and not look for the button output code
Answer the question
In order to leave comments, you need to log in
$('body').on('click', '.button-submit', function () {
// код
});
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question