javascript - How can I send an Ajax request to check a register user field when I don't have jQuery? -


I have a very simple registration screen with the following fields:

  & lt; Input id = "email" name = "email" placeholder = "email" required = "required" type = "article" value = "" /> & Lt; Button ID = "Register" type = "button" onclick = "location.href = '/ account / register'" & gt; Register & lt; / Button & gt;   

jQuery is not available in my registration screen.

How do I create it so that after the user leaves the screen or click the submit button, an AJAX call should be called to check whether the user is already in the email system or not.

You can submit a form using AJAX, but no jQuery. Includes using the JavaScript default Ajax API, XMLHttpRequest. See: For more information.

Comments

Popular posts from this blog

c++ - Cmake produces file extensions in static library archives -

c# - Roxy file manager in MVC doesn't accept session path -

c# - XML - Serialize class - Some questions -