Readonly Checkboxes

I am having an issue with getting making checkboxes readonly. They are currently disabled (dynamically).

Here is the code:

 <asp:CheckBox ID="chkWeek" ToolTip = "Week" runat="server" Text="Week 1" Enabled="false"></asp:CheckBox>

I tried taking out the Enabled=“false” and replacing with readonly=“readonly” but it still doe not give it focus when I tab.

Any suggestions?

Not an option

This Boolean attribute indicates that the user cannot modify the value of the control. It is ignored if the value of the type attribute is hidden, range, color, checkbox, radio, file, or a button type (such as button or submit).

If they can’t be changed, why should they get focus?

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.