How to add targets Yandex metrics in buttons created using the constructor native WP?

Friends , is there a website on Wordpress with the theme native. Through the designer created buttons in the ability to add html just in the event there is no option. Is there a way in js to add the onclick event ?
June 5th 19 at 21:52
1 answer
June 5th 19 at 21:54
Solution
$(".element_class").on('click', function(){
yaCounterXXXXXX.reachGoal('TARGET_NAME'); 
return true;
});

Find more questions by tags jQueryWordPress