Skip validation when going backwards in SmartWizard
问题 I am using the SmartWizard 2.0 (link) and I need to stop the validation from kicking in when the users hits the "Prev" button or in any way moves backward in the form. Currently I am using // Triggers whenever you change page/tab in wizard function leaveStep(obj) { $("form").validate(); if ($("form").valid()) return true; return false; } I know that I can use var currentStep = obj.attr('rel'); // get the current step number to find the currentStep, but I need to know which way the user is