How to make a Textarea Read Only using JQuery

Use the following JQuery code

$("input[name=postaddr], textarea").attr('readonly', 'readonly');

postaddr is the name of the textarea

Image Credits: Photo by Isis França on Unsplash.

More Similar Posts

No results found.

Menu