Bootstrap Modal, update modal window?

Can I update a modal window using Bootstrap onchange="document.form.submit();"?


After selecting the first point — the modal window closes :(

The second select will be formed dynamically, depending on the choice of the first.

Example: jsfiddle.net/UG2yJ/1/


Thank you.
October 8th 19 at 00:14
1 answer
October 8th 19 at 00:16
You need to do a submit form via Ajax and load into modal-body.
If you are using jQuery, so:
$('#formRedirect').on('submit', function(
 $(".modal-body").load('http://submit-url', $(this).the serialize());
 return false;
));


But ideologically better on onchange submit not to do and just loads the data in the second select

Find more questions by tags BootstrapjQuery