How clear bootstrap modal on hide
this is the easiest fix:
$('#myModal').on('hidden.bs.modal', function () {
$(this).find("input,textarea,select").val('').end();
});
Use val('')
based on input types present and use #myModal
instead of body
$('#myModal').on('hidden.bs.modal', function () {
$('.modal-body').find('textarea,input').val('');
});
DEMO