bootstrap remote modal showing same content every time

bootstrap remote modal showing same content every time

If bootstrap is showing same content in remote model.
To fix it destroy the Modal object before subsequent toggles.

Add the following code

<script type='text/javascript'>
$('body').on('hidden.bs.modal', '.modal', function () {
  $(this).removeData('bs.modal');
});
</script>


Advertisements

Add Comment

📖 Read More