79318165

Date: 2024-12-30 17:10:21
Score: 1
Natty:
Report link

Another approach would be to add a readonly class to the parent element containing all input or textarea fields that need to be made readonly; and add the following in the css:

.readonly textarea,
.readonly input {
  pointer-events: none;
  background-color: gray;
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: rehan