Make textarea readonly with jquery

Viewed 90900

For text input I do:

$('input[type="text"]').each(function(){
  $(this).attr('readonly','readonly');
});

But what should I do for textarea, to make it readonly.

5 Answers
Related