I currently have a verification form which takes a number input and checks to see if it is the correct number within the jquery itself. What I would like to do is have it check against the database through an ajax call, unfortunately I have not been successful thus far. Below is my code currently.
// get user input
var input = $("input", this).val();
// do something with the answer
// close the mask
showFlash("Incorrect verification code, please retry again");
// do not submit the form