I have a textarea I create like this:
<asp:TextBox onkeydown="HandleKeyDown(this);" runat="server" ID="Comments" Rows="10" TextMode="MultiLine" Width="100%"></asp:TextBox>
In the javascript function I am able to figure out when the tab key is pressed. Now, I have some text like this in the textarea:
Here is some text [ ], and here is some more [ ]
As the user presses the tab key within the textarea I would like to select the next [ ] characters. Can someone show me the way?
Thanks!
<asp:TextBox onkeydown="HandleKeyDown(this);" runat="server" ID="Comments" Rows="10" TextMode="MultiLine" Width="100%"></asp:TextBox>
In the javascript function I am able to figure out when the tab key is pressed. Now, I have some text like this in the textarea:
Here is some text [ ], and here is some more [ ]
As the user presses the tab key within the textarea I would like to select the next [ ] characters. Can someone show me the way?
Thanks!