I\'ve got this function:
$(document).ready(function() { $(\'.post_button, .btn_favorite\').click(function() { //Fade in the Popup $(\'.login_modal_message\
class-of-element is the applied class of element. which is selector here.
class-of-element
$(document).on("click", ".class-of-element", function (){ alert("Success"); });