mercredi 24 février 2016

Why post value for checkbox is 'on'?

The standard says: Value attribute is optional except when the type attribute has the value "radio" or "checkbox".

But when I have <input type='checkbox'> with no value the browser sends 'on' value instead.

Is there any document or standard what value the browser should encode into into POST data when the 'value' attribute for checkbox is undefined?




Aucun commentaire:

Enregistrer un commentaire