title: Add custom validation in SmartWizard
body: <p>I have below code part in SmartWizard. I want to add custom validation to each HTML controls.</p>
  
  <pre><code>  &lt;form id="myform"&gt;
      &lt;input type="text" name="field1" /&gt;
      &lt;br/&gt;
      &lt;input type="text" name="field2" /&gt;
      &lt;br/&gt;
      &lt;input type="submit" /&gt;
  &lt;/form&gt;  
  </code></pre>
  
  <p>I have tried below code but not working.</p>
  
  <pre><code>function leaveAStepCallback(obj){
                 var step_num= obj.attr('rel'); // get the current step number
          return validateSteps(step_num); // return false to stay on step and true to continue navigation 
        }
  </code></pre>