单选按钮专注于标签 [英] Radio button focus on tabbing
本文介绍了单选按钮专注于标签的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的页面中有一个radiobutton列表,其中html代码如下
I have a radiobutton list in my page in which html code is as follows
<div class="table_column_85R">
<asp:RadioButtonList ID="rblStatus" runat="server" RepeatColumns="3" RepeatDirection="Horizontal"TabIndex="101" OnSelectedIndexChanged="rblStatus_SelectedIndexChanged" AutoPostBack="true">
<asp:ListItem Text="Inprogress" Value="5" />
<asp:ListItem Text="Extension" Value="3" />
<asp:ListItem Text="Completion" Value="2" />
</asp:RadioButtonList>
</div>
这里我需要关注选中的单选按钮,同时我按Tab键。
请帮我解决这个问题
here i need focus on selected radio button while I hit tab key .
Please help me to solve this
推荐答案
选择你的单选按钮,然后单击属性窗口:
property - >辅助功能 - > tabindex
设置你的tabindex数字...例如你设置1意味着你输入标签按钮..tab按钮转到单选按钮...
代码:
select ur radio button and click property window:
property --> Accessibility--> tabindex
Set ur tabindex number...for example u set 1 means wen u enter tab button..tab button goes to radio button...
For ur code:
<div class="table_column_85R">
<asp:RadioButtonList ID="rblStatus" runat="server" RepeatColumns="3" RepeatDirection="Horizontal"TabIndex="1" OnSelectedIndexChanged="rblStatus_SelectedIndexChanged" AutoPostBack="true">
<asp:ListItem Text="Inprogress" Value="5" />
<asp:ListItem Text="Extension" Value="3" />
<asp:ListItem Text="Completion" Value="2" />
</asp:RadioButtonList>
</div>
u change tab index no is 1 ... tat''s all ..
如果它正常工作将此标记为解决方案....
快乐编码......
u change tab index no is 1...tat''s all..
if it works correctly mark this as a solution....
Happy coding...
这篇关于单选按钮专注于标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文