title: trying to change the state of a submit button from disabled to enabled
body: <p>Trying different ways to change the state of a button by removing the class "disabled". After having tried various suggestions that I found online I have still not been able to get it working as I would like it.
  Below is the snippet of from the view</p>
  
  <pre><code> &lt;tr&gt;
      &lt;td&gt;
      &lt;input type="checkbox" name="chk" id="chk" onclick="enableSubmit()"&gt;I accept the 
      &lt;a target="_blank" href="&lt;c:url value='/TermsAndConditions' /&gt;" rel="nofollow" &gt;terms and conditions
      &lt;/a&gt; of this transaction
      &lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
      &lt;td style="align: left;"&gt;
      &lt;a class="btn btn-default" href="&lt;c:url value='/Cancel' /&gt;/${order.id}" role="button"&gt;
      &lt;spring:message code="result.back" /&gt;
      &lt;/a&gt;
      &lt;/td&gt;
      &lt;td style="text-align: right;"&gt;
      &lt;a id="submitBtn" class="btn btn-primary disabled" href="&lt;c:url value='/Confirm' /&gt;/${order.id}" role="button" &gt;
      &lt;spring:message code="result.submit" /&gt;
      &lt;/a&gt;
      &lt;/td&gt;
      &lt;/tr&gt;
  </code></pre>
  
  <p>below is lastest attempt I have tried</p>
  
  <pre><code> &lt;script&gt;
          function enableSubmit(){
          $('#submitBtn').removeClass('disabled');
          }
   &lt;/script&gt;
  </code></pre>
  
  <p>any guidance on what I am doing wrong will be greatly appretiated</p>