Closed hlarcher closed 10 years ago
That depends on how you implement the view that you inject into the modal, e.g.:
var myView = new Backbone.View(...);
var modal = new Backbone.BootstrapModal({ content: myView }).open();
modal.on('ok', function() {
var val = myView.$('input').val();
});
Makes sense, thanks a lot
Great job with this plugin, worked out of the box but now I'm having trouble figuring out how to get data from the content on Ok click, for example lets say I have an input field and write something in it, how do I get that data out when I click ok?
Thanks in advance