프로그래밍/HTML&CSS
[HTML] 태그 속성 중 readonly 와 disabled의 차이점
Form를 submit를 하였을 때 readonly 의 경우 백엔드 쪽으로 값이 넘어오지만, disabled의 경우 백엔드 쪽으로 값이 넘어 오지 않는다. [asp.net mvc 4 Razor 이용시] @Html.TextBoxFor(m => m.ManagerAddress, new { @class = "k-input", @readonly = "readonly" }) @Html.TextBoxFor(m => m.OriginNumbers, new { @class = "k-input", type = "hidden", @readonly = "readonly" }) @Html.RadioButtonFor(m => m.IsPublicAmount, false, new { @class = "radio", disabled =..
2019. 7. 24. 13:26