Para se concentrar na caixa de texto quando o pop-up de bootstrap estiver aberto
$("#dialog-cancelReasonModal").on('shown.bs.modal', function () {
$(this).find('#txtName').focus();
});
• ID of the bootstrap POP-UP = dialog-cancelReasonModal
• ID of the TextBox = 'txtName'
Light Leopard