Twitter Bootstrap: to clear modal after loading remote data

The problem with Bootstrap modal object and remote data is, that data is not changed after loading first set. Here is a simple and wonderful solution for Bootstrap 3+ answer to the question “Twitter bootstrap remote modal shows same content everytime” $(‘body’).on(‘hidden.bs.modal’, ‘.modal’, function () { $(this).removeData(‘bs.modal’); });