title: Stuck on conditionally enable or disable input with JQuery
body: <p>I am attempting to conditionally enable or disable HTML input based on the value of a variable. The "disable" part is working well, but the "enable" isn't, and I can't figure out why. </p>
  
  <p>The code:</p>
  
  <pre><code>&lt;--if variable is true...--&gt;
  &lt;div id="disabledSearch" class="searchBox disabled"&gt;
      &lt;script type="text/javascript"&gt;
          $('#disabledSearch :input').attr('disabled', true); 
      &lt;/script&gt;
  
  &lt;--if variable is false--&gt;
  &lt;div id="enabledSearch" class="searchBox"&gt;
      &lt;script type="text/javascript"&gt;
          //This line isn't working:  
          $('#enabledSearch :input').removeAttr('disabled');
      &lt;/script&gt;
  </code></pre>