Stop then restart submit() after ajax check

Posted by jeerose on Stack Overflow See other posts from Stack Overflow or by jeerose
Published on 2010-04-14T14:05:03Z Indexed on 2010/04/14 14:12 UTC
Read the original article Hit count: 187

Filed under:
|
|

I asked a question [here] recently and it's just not providing me with an answer. Here's what I want to do and you can see my first attempt at the link above:

  1. User submits form
  2. Stop default submit action
  3. check to see if a similar entry exists in database
    1. If it does, display a notice asking them if they want to submit anyway and give an option to let them submit anyway (enable default action and submit it).
    2. If it does not, enable the default action on the form and let it submit

I'm at a loss. Any help is appreciated. Thanks gang.

© Stack Overflow or respective owner

Related posts about AJAX

Related posts about jQuery