how to POST/Submit an Input Checkbox that is disabled?

UPDATE: READONLY doesn’t work on checkboxes

You could use disabled="disabled" but at this point checkbox’s value will not appear into POST values. One of the strategy is to add an hidden field holding checkbox’s value within the same form and read value back from that field

Simply change disabled to readonly

Leave a Comment