$("#dialog-cancelReasonModal").on('shown.bs.modal', function () { $(this).find('#txtName').focus(); }); • ID of the bootstrap POP-UP = dialog-cancelReasonModal • ID of the TextBox = 'txtName'