Prevent checkbox from ticking/checking COMPLETELY

前端 未结 13 590
醉梦人生
醉梦人生 2020-12-09 07:48

I have been asked to disable the \"ticking\" of a checkbox. I am not being asked to disable the checkbox, but to simply disable the \"ticking\".

In other w

13条回答
  •  春和景丽
    2020-12-09 08:18

    Sounds to me like you are using the wrong interface element, a more suitable one would be a button that is disabled by default, but enabled when that option is available. The image displayed can be whatever you want.

    
    

    When users have selected that feature, enable the button. The image on the button can be modified by CSS depending on whether it's enabled or not, or by the enable/disable function.

    e.g.

    
    
    

    Select options

    Option 1
    Option 2

提交回复
热议问题