jquery on modal show
$(window).on('shown.bs.modal', function() {
$('#code').modal('show');
alert('shown');
});
jquery on modal show
$(window).on('shown.bs.modal', function() {
$('#code').modal('show');
alert('shown');
});
call function on modal open
$('#myModal').on('shown.bs.modal', function (e) {
// do something...
})
modal show jquery event
<div class="modal fade" id="phoneEdit" tabindex="-1" role="dialog" aria-labelledby="phoneEdit" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header center">
<label class="large-text bold text-align-left">
<?= __d('member', 'edit_password'); ?>
</label>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
</div>
</div>
</div>
</div>
$("#phoneEdit").on('shown.bs.modal', function(e){
console.log('enter here');
// do anything after the modal open
$(".number_six").val("");
});
how to make popup modal in jquery with example
$('#sub-modal').modal({
closeExisting: false
});
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us