$('#mymodal').on('hidden.bs.modal', function() {
$(this)
.find("input,textarea,select")
.val('')
.end()
.find("input[type=checkbox], input[type=radio]")
.prop("checked", "")
.end();
})
Njoy :)--- title: "Clear values inside bootstrap modal upon closing" date: 2015-08-03T17:52:07 author: Mithun category: tips, none tags: [jquery, bootstrap] reading: ~1 min ---
# Clear values inside bootstrap modal upon closing
I don't know whether this is going to be useful for anyone. Since i wanted to share something in the site after a long time, i am putting things. I will be regular now on ;) (i hope so)