I use Bootstrap from Twitter to create a modal dialog in a Marionette app.
I would like to know how best to focus the first field in modal forms without using fancy javascript.
Here is my code:
var app = new Marionette.Application(); app.addRegions({ modal: '#modal' }); app.vent.on('showModal', function (view) { var modal = app.modal; modal.show(view); modal.$el.modal({ show: true, keyboard: true, backdrop: 'static' }); });
js999 source share