How do I submit disabled input in ASP.NET MVC?
Can't you make the field readonly="readonly"
instead of disabled="disabled"
? A readonly field value will be submitted to the server while still being non-editable by the user. A SELECT
tag is an exception though.
Thanks to everyone:
The way i resolved this:
document.getElementById("Costo").readOnly = true;
document.getElementById("Costo").style.color = "#c0c0c0";
Note:
I got this information on the answer but i got editted.