javascript - Check Username Using Ajax in Jquery Validation Engine -


I am using a query validation engine:

I agree I want to use Ajax username field if user name already gets in db. It should be valid.

Here is my code & amp; I have tried to do something like this:

js:

  "check the ajax username": {"url" : "Phpajax / ajaxvalidatefieldUser.php", // You want to give additional data on the Ajax call "Additional Data": "name = eric", // If you provide a "warning text oak", then this field is called "alertcard" If confirmed, it will be shown as a green prompt: "* This username is available", "Warning text": "* This usage "WarningTextload": "* Valid, Please wait"},   

HTML:

  & lt; Input class = "valid [custom [ajaxUserNameCheck]" type = "text" name = "user name" id = "userName" & gt; & Lt; / Div & gt;   

This gives an error in the alert:

  jqv: custom type is not allowed in ajaxUserNameCheck    

  & lt; Input class = "valid [custom [ajaxUserNameCheck]" type = "text" name = "userName" id = "userName" & gt; ; & Lt; Span id = "emailinfo" & gt; & Lt; / Span & gt; $ (Document) .ready (function () {$ ("# userName"). Focus Out (function () {var e = $ (this) .val (); $ .ajax ({type: "POST", url: "Username_validate.php", // AJAX file data: {e: e}, success: function (e) {if (e == 0) {$ ("# emailinfo"). Hide ();} and {$ ( "#emailinfo"). Html (e);}}});});});    

Comments

Popular posts from this blog

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -