开发者

JQuery username validation - Ajax call

开发者 https://www.devze.com 2023-01-01 13:21 出处:网络
I am currently using JQuery\'s validation plugin for basic form validation such as required fields. I want to add functionality so that when the user types in the username field, an ajax call is tri

I am currently using JQuery's validation plugin for basic form validation such as required fields.

I want to add functionality so that when the user types in the username field, an ajax call is triggered to check whether the username is already taken. My requirements are:

  • Preferably integrate with JQuery Validation plugin, rather than writing a custom function
  • I want the lookup to occur on the keyup event
  • I want the lookup to be triggered approx开发者_Go百科 0.5 seconds after the keyup event has occurred.

Thanks!


I found this post: http://www.twu.ca/divisions/technology/sst/orion/blog/jquery-autocomplete-and-asp-net-validation.html

It may point you in the right direction

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号