I have some custom validation that I want to execute when the next button is clicked. If the validation passes, I want to go on to the next question, if the validation fails I want to display an error and prevent the "next" action.
I tried
jQuery.on("click keydown submit", function(){
var goodToGo = myvalidation();
return goodToGo;
});
Returning false if to prevent event bubbling, but this did not work.
Other suggestions?
Question
Validating a question on "next" button click
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
