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

Pass DB Connection parameters to a Kettle a.k.a PDI table Input step dynamically from Excel -

multithreading - PhantomJS-Node in a for Loop -

c++ - MATLAB .m file to .mex file using Matlab Compiler -