Set disabled or readonly for input
<input disabled="disabled" type="text" value="Disabled" /> //will not deliver the value to server
<input readonly="readonly" type="text" value="Readonly" /> //will deliver the value to server
You couldn't edit the field both, but the main diff is one will send value via POST/GET, one will not.
Leave Comment