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"
原文地址:https://www.cnblogs.com/laq627/p/12612791.html