input[readonly] { color: graytext; background: buttonface; }
READONLY
SELECT
ONCHANGE
<select onchange='$(this).val(original-value);'> <option . . . /> </select>
@Html.DropDownListFor( m => m.OrderTypeId, new SelectList(Model.OrderTypes, "Id", "DisplayName"), new { @readonly="readonly", OnChange = "$(this).val(" + @Model.OrderTypeId + ");" } )
ScrewTurn Wiki version 3.0.1.400. Some of the icons created by FamFamFam. Except where noted, all contents Copyright © 1999-2024, Patrick Jasinski.