Categories: NoneTips

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 wink (i hope so)

 


$('#mymodal').on('hidden.bs.modal', function() {
$(this)
.find("input,textarea,select")
.val('')
.end()
.find("input[type=checkbox], input[type=radio]")
.prop("checked", "")
.end();
})

Njoy smile

Mithun

Share
Published by
Mithun

Recent Posts

Quick release mount systems Compatibility chart

Plate Base FALCAM F38 Ulanzi Uka PGYTECH SNAPLOCK PeakDesign Falcam F38 ⬤ ✕ ✕ ✕…

7 months ago

Happy New Year 2025

I really thought I would keep up with the blog in 2024. But, it didn't…

8 months ago

Happy New Year 2024

Oh boy, there were a lot of things that happened this year. Like last year,…

2 years ago

Happy New Year 2023

This has become a abandoned blog. I will try to fix things this year. More…

3 years ago

Happy New Year 2022

Let me start off by saying, i have more blog posts this year than the…

4 years ago

Fix for xbox “This App Needs a Few Things That Are Missing on this PC”

This happened because your windows has run out of space. If you get this error…

4 years ago

This website uses cookies.