📜  在引导弹出窗口打开时专注于文本框 - 无论代码示例

📅  最后修改于: 2022-03-11 14:57:28.800000             🧑  作者: Mango

代码示例1
$("#dialog-cancelReasonModal").on('shown.bs.modal', function () {
                $(this).find('#txtName').focus();
            });

•    ID of the bootstrap POP-UP = dialog-cancelReasonModal 
•    ID of the TextBox = 'txtName'