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

asp.net - Procedure or function "Procedure name" expects a parameter "Param name" which was not supplied occurs rarely -

c# - The item with identity 'Id' already exists in the metadata collection. Parameter name: item -

c++ - Redefined variable in the other module -