How to style a disabled checkbox?

后端 未结 9 628
旧巷少年郎
旧巷少年郎 2021-01-07 16:32

Do you know how I could style a checkbox when it is disabled?

E.g.:



        
9条回答
  •  执笔经年
    2021-01-07 16:54

    If you're trying to stop someone from updating the checkbox so it appears disabled then just use JQuery

    $('input[type=checkbox]').click(false);

    You can then style the checkbox.

提交回复
热议问题