I have a Bootstrap modal with dynamic input fields and i need to empty all the field values after closing the modal.(i.e)i need to refresh the modal once it closed.
I have tried clear();
and
$('body').on('hidden.bs.modal', '.modal', function () {
$(this).removeData('bs.modal');
});
but not working for me.can you please suggest a working solution for this. Thanks in advance..