title: Enable checkbox if text field is not empty with inconsistent id
body: <p>Purpose is to have checkboxes disabled when the page loads, and remain greyed out until textbox is filled.</p>
  
  <pre><code>&lt;input type="text" name="&lt;%=commentID%&gt;" /&gt;
  &lt;input type="checkbox" name="&lt;%=SkipID%&gt;" value="N" disabled/&gt;
  </code></pre>
  
  <p>I tried to do something like </p>
  
  <pre><code>&lt;input type="text" name="&lt;%=commentID%&gt;" onkeyup="userTyped('&lt;%=SkipID%&gt;') /&gt;
  
  function userTyped(commen){
      if(this.value.length &gt; 0){
          document.getElementById(commen).disabled=false;
      }else{
          document.getElementById(commen).disabled=true;
      }
   }
  </code></pre>
  
  <p>But it did not work. I am assuming because of the inconsistency of the name, but I have to have that.</p>