I have below code part in SmartWizard. I want to add custom validation to each HTML controls.
<form id="myform">
<input type="text" name="field1" />
<br/>
<input type="text" name="field2" />
<br/>
<input type="submit" />
</form>
I have tried below code but not working.
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
}