After fully loaded the HTML DOM I am calling ajax on form submit and the result I got is:
<a data-nonce="https://hypley.com?wp_nonce=2db70bc9fb" id="resend_email">here</a></strong>
Now, again I want to call ajax on that link click:
$("#resend_email").on("click", function (e) {
e.preventDefault();
alert(1);
var user_login = $("#user_login").val();
console.log( user_login );
});
But it's not working, I mean at least not showing me the alert.
Do you know why, how can I solve it?