This question has already been answered:
On a regular page there is a script that sets the verification of fields in the login and password modal window, I click submit in this popup, and the Ajax loads that the login and password is not correct, but after loading the Ajax, the following script simply does not work.
Why? For example, the script
$(".required").each(function(){}).on("blur", function() { if ($(this).val()!="") { if ($(this).hasClass("error")) { $(this).removeClass("error"); } }else{ if ($(this).hasClass("error")==false) { $(this).addClass("error"); } } }); on .