I have Web App. in that One note control and one textbox,when I run the app then cursor focus the note but I want to focus on textbox,I have use Focus property but their is no work please give me the solution...
Try
Name: <asp:TextBox ID="txtName" runat="server"></asp:TextBox> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script> <script type = "text/javascript"> $(function () { setTimeout(function () { $("[id$=txtName]").focus(); }, 1000); }); </script>
© COPYRIGHT 2025 ASPSnippets.com ALL RIGHTS RESERVED.