I have one button in my page, when we click on that button model popup comes in with 5text boxes(@html.editorfor). How we can set focus on last textbox. i already tried autofocus="autofocus" or $('#texteditor').focus();
plz help.
the answer is :
$('#YourModalDivID').on('shown', function () { $('#TextBoxId').focus(); })
© COPYRIGHT 2025 ASPSnippets.com ALL RIGHTS RESERVED.