diff --git a/www/examples/inline-validation.md b/www/examples/inline-validation.md index 56677476..5f0ac32e 100644 --- a/www/examples/inline-validation.md +++ b/www/examples/inline-validation.md @@ -15,7 +15,7 @@ We start with this form:
- +
@@ -94,7 +94,7 @@ Below is a working demo of this example. The only email that will be accepted i return formTemplate(); }); - onGet(/\/contact\/email.*/, function(request, params){ + onPost(/\/contact\/email.*/, function(request, params){ var email = params['email']; if(!/\S+@\S+\.\S+/.test(email)) { return emailInputTemplate(email, "Please enter a valid email address"); @@ -115,7 +115,7 @@ Below is a working demo of this example. The only email that will be accepted i return `
- +
@@ -133,7 +133,7 @@ Below is a working demo of this example. The only email that will be accepted i function emailInputTemplate(val, errorMsg) { return `
- + ${errorMsg ? ("
" + errorMsg + "
") : ""}
`;