function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Manish ThakurManish Thakur 

Input field readonly with Java Script

How to make a input field readonly witth Java Script?
Rupal KumarRupal Kumar
Hi Manish
 Java Script-
document.getElementById('InputFieldID').readOnly = true;
Rupal Kumar
Ankur Saini 9Ankur Saini 9
Hi Manish

Try this:

<apex:inputText value="{!Account.Name}" html-readonly="true" />