set focus on input in modal code example
Example: To focus on the textbox when bootstrap pop-up is open
$("#dialog-cancelReasonModal").on('shown.bs.modal', function () {
$(this).find('#txtName').focus();
});
• ID of the bootstrap POP-UP = dialog-cancelReasonModal
• ID of the TextBox = 'txtName'