1 - The disabled
attribute is an attribute to indicate what the name itself says 'desabilitato'
, that is, it will not be skillful within the form.
2 - Even with the disabled
attribute, the value appears, in your case it is not appearing because the 'value'
property is without '='
, just correct it to:
value="123456,78"
3 - To have a non-editable input that is counted by the form, use the 'readonly'
attribute, which also means the name 'read only', with this attribute the field value is not editable, but is skilful inside of the form.
Your correct input (If you want to submit the data via form) should be:
<input type="text" name="anterior" id="anterior" size="13" maxlength="50" value="123456,78" readonly />
And another option (if you do not want the data to be submitted via form) should be:
<input type="text" name="anterior" id="anterior" size="13" maxlength="50" value="123456,78" disabled='disabled' />