Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Cancel form submission in demo; use alert instead.

  • Loading branch information...
commit 414c3ede4fc0dbb395e3fb7a32797119419c0a98 1 parent 5ceb1b7
@kflorence authored
Showing with 5 additions and 1 deletion.
  1. +5 −1 examples/index.html
View
6 examples/index.html
@@ -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() );
Please sign in to comment.
Something went wrong with that request. Please try again.