Good afternoon, I have a problem with the registration form and its validation.
When a user enters mail in a form, the validator checks if the mail is busy, makes a request and receives JSON data from the server via ajax. If the user enters a new mail, the validator will repeat the operation, but if you enter the first mail in the form, then the validator will not ask for anything because he already has this data. The data will be stored until the page is reloaded, and I want to delete this data after the popup closes, because their presence can lead to an error, for example, if the user tries to re-register in the system.
And so the question is how to delete this data after closing the popup. 