preventing a user from changing the state of a radio button

后端 未结 4 2129
隐瞒了意图╮
隐瞒了意图╮ 2021-01-14 11:00

I am trying to prevent a user from changing the state of a radio button using jquery or javascript. I could do this with the disabled property but I don\'t like the grayed o

4条回答
  •  滥情空心
    2021-01-14 11:56

    Try using the disabled property, since that is what it is for, but then change the style of the radio button using CSS.

    However, that doesn't sound like a very intuitive User Experience. Users know what grayed out means, you probably shouldn't mess with that!

提交回复
热议问题