Skip to content

Instantly share code, notes, and snippets.

@miguelmich
Created December 23, 2014 14:26
Show Gist options
  • Save miguelmich/48eb1e482ce905960289 to your computer and use it in GitHub Desktop.
Save miguelmich/48eb1e482ce905960289 to your computer and use it in GitHub Desktop.
Fuel UX - Wizard Parsley Validation
<script type="text/javascript">
$(document).ready(function(){
App.init();
App.wizard();
$('form').parsley();
$('#wizard1').on('actionclicked.fu.wizard', function (evt, data) {
if( !$("#your-form-id").parsley().validate() ){
evt.preventDefault();
}
});
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment