bootstrap.modalform

simple method to create dynamic forms embedded in bootstrap modals


License
MIT
Install
bower install bootstrap.modalform

Documentation

bootstrap modal forms

Example usage:

$.modalForm({
  fields: [ 'username', 'password' ],
  submit: 'Sign In'
}).on('submit', function(event, inputs) {
  // event.target => <div class="modal">
  // inputs       => { username, password }
})

results in:

Screenshot

License

MIT license.
© Gregor Martynus