input[type="checkbox"]复选框"只读"状态,避免使用disable属性使其颜色变灰

<input type="checkbox" name="expirationReminder" value="1" checked="" onclick="this.checked=!this.checked"/>到期提醒

<input type="checkbox" name="expirationReminder" value="1" onclick="this.checked=!this.checked"/>到期提醒

input type="checkbox" 标签里添加:

onclick="this.checked=!this.checked"

 

posted @ 2020-04-01 15:13  Ann丶  阅读(3123)  评论(0编辑  收藏  举报