title: How to disable fields within a Javascript form
body: <p>What is the best way of disabling(greying out) fields within a Javascript form? I have tried the <code>disabled="disabled"</code> on both the form and its fields but neither work e.g.:</p>
  
  <pre><code>&lt;form:form id="testForm" method="post" disabled="disabled" action="${pageContext.request.contextPath}/testSave" commandName="testForm"&gt;
      &lt;tr&gt;
          &lt;td valign="top" disabled="disabled"&gt;Name:&amp;nbsp;&lt;/td&gt;
          &lt;td valign="top"&gt;&lt;form:input disabled="disabled" path="fName"/&gt;&lt;/td&gt;
      &lt;/tr&gt;
  &lt;/form:form&gt;
  </code></pre>
  
  <p>Any ideas on what im doing wrong here?</p>