Can HTML checkboxes be set to readonly?

前端 未结 30 1623
無奈伤痛
無奈伤痛 2020-11-22 08:39

I thought they could be, but as I\'m not putting my money where my mouth was (so to speak) setting the readonly attribute doesn\'t actually seem to do anything.

I\'d

30条回答
  •  北海茫月
    2020-11-22 08:59

    an alternative idea is to use an overlay and cover up your readonly inputs

    http://pure-essence.net/2011/09/22/jquery-read-only-elements/

提交回复
热议问题