Answers for "how to call function on modal close"

4

javascript modal close

$('#closemodal').click(function() {
    $('#modalwindow').modal('hide');
});
Posted by: Guest on March-08-2020
4

call function on modal open

$('#myModal').on('shown.bs.modal', function (e) {
  // do something...
})
Posted by: Guest on June-14-2020
0

when modal close event

$("yourid").on('hide.bs.modal', function(){
	// do it here
});
Posted by: Guest on January-07-2021
4

javascript modal close

$('#closemodal').click(function() {
    $('#modalwindow').modal('hide');
});
Posted by: Guest on March-08-2020
4

call function on modal open

$('#myModal').on('shown.bs.modal', function (e) {
  // do something...
})
Posted by: Guest on June-14-2020
0

when modal close event

$("yourid").on('hide.bs.modal', function(){
	// do it here
});
Posted by: Guest on January-07-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language