bootstrap modal don't dismiss
<div class="modal fade" id="myModal" data-backdrop="static" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
bootstrap modal don't dismiss
<div class="modal fade" id="myModal" data-backdrop="static" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
How to Set focus to first text input in a bootstrap modal after shown
$('#myModal').on('shown.bs.modal', function () {
$('#textareaID').focus();
})
/* My solutioin ..
// focus on button close .. so when you press Enter key .. modal closes .. again comunicating with bs.modal only attainable by jq
$(ids.id4).on(`shown.bs.modal`, function(){
$(`#modal-diag1 button`).focus()
})
==============================================================
// check the following for
$("#dialog-cancelReasonModal").on('shown.bs.modal', function () {
$(this).find('#txtName').focus();
});
• ID of the bootstrap POP-UP = dialog-cancelReasonModal
• ID of the TextBox = 'txtName'
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