JQuery username validation - Ajax call

Posted by Denise on Stack Overflow See other posts from Stack Overflow or by Denise
Published on 2010-06-01T10:40:48Z Indexed on 2010/06/01 10:43 UTC
Read the original article Hit count: 284

Hi,

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 nkeyup event
  • I want the lookup to be triggered approx 0.5 seconds after the keyup event has occurred.

Thanks!

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about AJAX