Integrating with Bootbox

In this example, we will use bootbox.js to display and validate a login form inside a modal.

Initially, the login form isn't displayed:

When click the login button, we will show up the modal. We might need to reset the previous form values using the resetForm method.

You can take a look at the Code tab to see the full code:

If you want to use Ajax to submit the form, we can trigger the core.form.valid event: