title: Add disabled attribute to input element using Javascript
body: <p>I have an input box and I want it to be disabled and at the same time hide it to avoid problems when porting my form.</p>
  
  <p>So far I have the following code to hide my input:</p>
  
  <pre><code>$(".shownextrow").click(function() { 
      $(this).closest("tr").next().show().find('.longboxsmall').hide();
  });
  </code></pre>
  
  <p>This is the input that gets hidden as a result:</p>
  
  <pre><code>&lt;input class="longboxsmall" type="text" /&gt;
  </code></pre>
  
  <p>How can I also add the disabled attribute to the input?</p>