Permalink
Browse files

Cancel form submission in demo; use alert instead.

  • Loading branch information...
kflorence committed May 25, 2012
1 parent 5ceb1b7 commit 414c3ede4fc0dbb395e3fb7a32797119419c0a98
Showing with 5 additions and 1 deletion.
  1. +5 −1 examples/index.html
View
@@ -65,7 +65,11 @@
var inputs = $(this).wizard('state').step.find(':input');
return !inputs.length || !!inputs.valid();
}
- }).wizard('form').validate({
+ }).wizard('form').submit(function( event ) {
+ event.preventDefault();
+ alert('Form submitted!');
+
+ }).validate({
errorPlacement: function(error, element) {
if ( element.is(':radio') || element.is(':checkbox') ) {
error.insertBefore( element.next() );

0 comments on commit 414c3ed

Please sign in to comment.