diff --git a/docs/simple-application.md b/docs/simple-application.md index 196499336..5a8021c9d 100644 --- a/docs/simple-application.md +++ b/docs/simple-application.md @@ -341,7 +341,7 @@ module.exports = { m("input.input[type=text][placeholder=First name]"), m("label.label", "Last name"), m("input.input[placeholder=Last name]"), - m("button.button[type=button]", "Save"), + m("button.button[type=submit]", "Save"), ]) } } @@ -480,7 +480,7 @@ module.exports = { m("input.input[type=text][placeholder=First name]", {value: User.current.firstName}), m("label.label", "Last name"), m("input.input[placeholder=Last name]", {value: User.current.lastName}), - m("button.button[type=button]", "Save"), + m("button.button[type=submit]", "Save"), ]) } }