true %>. But you absolutely MUST validate the data on the server to ensure it hasn’t been changed. HTML, CSS, JavaScript? but actually is not recommended to use just simply old HTML, now you should use XHTML. readonly, but will not submit an input field that is disabled! I thought they could be, but as I’m not putting my money where my mouth was (so to speak) setting the readonly attribute doesn’t actually seem to do anything. a JavaScript can remove the readonly value, and make the input field editable. If anyone else is using MVC and an editor template, this is how I control displaying a read only property (I use a custom attribute to get the value in the if statement). then in jquery you can either choose one of two options: Building on the above answers, if using jQuery, this may be an good solution for all inputs: I’m using this with Asp.Net MVC to set some form elements read only. READONLY doesn’t work on checkboxes as it prevents you from editing a field’s value, but with a checkbox you’re actually editing the field’s state (on || off). The value of the readonly element will be included when the form is submitted to the server. Hi, I need to make a html form readonly for users to view it but not modify it.So i tried specifying readonly="true" attribute for the html:text and html:checkbox tags.The text is now readonly and cannot be changed but,the checkbox field can still be edited.How do i make the checkbox uneditable? I know that “disabled” isn’t an acceptable answer, since the op wants it to post. < fieldset > < legend > Checkboxes buttons < p > < label > < input type = " checkbox " name = " chbox " value = " regular " > Regular < p > < label > < input type = " checkbox " name = " chbox " value = " readonly " readonly > readonly < p > < label > < input type = " checkbox " name = " chbox " value = " disabled " disabled > disabled < fieldset > < … It uses a string of ‘T’ or ‘F’ and you can change this any way you like. Questions: How can I assign color to the mouse cursor in a web-page? My solution is actually the opposite of FlySwat’s solution, but I’m not sure if it will work for your situation. It is also valid on