can anyone tell me how can I make a checkbox readonly instead of disabled? For a textbox, I am using it like this
@Html.TextBoxFor(m => m.FirstName, new { id = "fName", @readonly="readonly" })
Now, I have a checkbox and a radiobutton like this
@Html.CheckBoxFor(m => m.Iseighteen, new { id = "18", @disabled = "disabled" })
@Html.RadioButtonFor(m => m.isMale, new { id = "male",@disabled = "disabled" })
The problem with the disabled is that I can't get focus in the disabled field while I can get a focus in the read only. If I tab then it selects the readonly fields so that the screen reader can read it but if its disabled then it skips everything disabled and goes to the footer. I tried using readonly for checkbox and radio but it doesn't work and lets the user edit. So, any suggestions on that?