Don't have an account?
Search for an answer or ask a question of the zone or Customer Support.
You need to sign in to do that
Sign in to start searching questions
Signup for a Developer Edition
Sign in to start a discussion
document.getElementById('InputFieldID').readOnly = true;
$(document).ready(function(){ $("[id$=InputFieldID]").prop("disabled",true);
Java Script- JQuery- Thanks
Rupal Kumar
http://mirketa.com
Try this:
<apex:inputText value="{!Account.Name}" html-readonly="true" />