Last post Jan 26, 2016 08:34 AM by Fei Han - MSFT
Jan 21, 2016 09:43 PM|drl|LINK
When I move focus to a multiline textbox I want the entire text in the box to be selected, I'm using JAWS and the text is not vocalized unless it is selected.
Can you help?
Jan 21, 2016 11:26 PM|A2H|LINK
When I move focus to a multiline textbox I want the entire text in the box to be selected,
Try with the below code
<asp:TextBox ID="TextBox1" runat="server" Rows="5" TextMode="MultiLine" Text="esdfsdsdfdfsdfsdfsdfsdfsdfsdfsdfsdf" onFocus="this.select()"></asp:TextBox>
Jan 26, 2016 08:34 AM|Fei Han - MSFT|LINK
The HTMLInputElement.select() method focuses an element and selects all the text in it. You could refer to the following link to get more information.