title: JQuery form wizard validation: how to skip validation on a 'back' button?
body: <p>I am using JQuery validation in a wizard made using Spring Webflow. The validation is set to be enabled when the doc is ready, since I want inline validation. It all works fine.</p>
  
  <p>The issue I am facing is the 'Previous' button, if I try to click it; it will not go back, since the validation fails. How can I skip validation when a specific button is pressed? Currently, I created an on click function, but then, Spring webflow cannot return to the previous view.</p>
  
  <p>Any suggestions?</p>
  
  <ul>
  <li>JQuery validation plugin: <a href="http://docs.jquery.com/Plugins/validation" rel="nofollow">http://docs.jquery.com/Plugins/validation</a></li>
  <li>Spring Webflow: <a href="http://www.springsource.org/webflow" rel="nofollow">http://www.springsource.org/webflow</a> version 2.x.x</li>
  </ul>
  
  <p>Validation:</p>
  
  <pre><code>$(document).ready(function(){
    // Validation for all the forms.
    $("#user_details").validate({ 
      rules: { ... },
      messages: { ... },
    });
  ...
  </code></pre>
  
  <p>flow of wizard:</p>
  
  <pre><code>&lt;view-state id="userdetails" view=""&gt;
    ...
    &lt;transition on="prev" to="homepage" validate="false"/&gt;
    &lt;transition on="next" to="nextstate" validate="true"/&gt;
  &lt;/view-state&gt;
  </code></pre>