How to reset form body in bootstrap modal box? -
i finding way empty form when opening bootstrap modalbox without refresing page.
problem when user enters data submit form , open modalbox again shows previous given data :. how can compeletly refresh form onclose modelbox ????
in bootstrap 3 can reset form after modal window has been closed follows:
$('.modal').on('hidden.bs.modal', function(){ $(this).find('form')[0].reset(); });
Comments
Post a Comment