JS: How to hide a bootstrap modal so that the input data doesn't persist? : <p>I have a modal I am including in my app and during the the checkout process, I <code>show</code> the modal.  If the transaction fails, I hide the modal using <code>$('#my-modal').modal('hide')</code> but my issue is that when the user goes to enter the checkout process again and it shows the modal, it still has the data that was there before.  Is it possible to destroy the instance so that the data doesn't persist that?</p>
