I have a form that submits data via jquery which is then shown via bootstrap modal.
However, the problem is that, if I quickly try to give new values to the form then t
It might be a binding issue, you are binding hidden.bs.modal
on the #modalForm
so unless you don't unbind it at some point, the same code will always execute with old values.
Try unbinding it by putting this code $('#modalForm').off('hidden.bs.modal')
right before $('#modalForm').on('hidden.bs.modal', function () {[...]
and if it doesn't work you might want to bind it only once using the $('#modalForm').one('hidden.bs.modal')
instead.