title: Disable a textarea field with name attribute using jquery
body: <p>I have a textarea that I want to disable when some condition is met, else it will be enabled.</p>
  
  <pre><code>&lt;textarea name='example'&gt;I want to disable this&lt;/textarea&gt;
  </code></pre>
  
  <p>I tried this method, but it's not working:</p>
  
  <pre><code>$('#example').attr('disabled', true);
  </code></pre>