In HTML, which of the following attributes is used to make an input field read-only? code example
Example: readonly attribute in html by javascript
document.getElementById("yourID").readOnly = true;
document.getElementById("yourID").readOnly = true;