title: Disable a button on a specific drop down value
body: <p>Trying to work out a small issue with dojo, where if the value of myCode equals selCode (Value selected from dropdown)
  the button needs to be disabled. Where am I going wrong here? <br/>
  <a href="http://jsfiddle.net/aman/BmSjb/1/" rel="nofollow">Example</a></p>
  
  <pre><code>var myCode = "CC";
  
  dojo.addOnLoad(function() {
      dojo.connect(dojo.byId('#codes'), "onchange", function(evt) {
          var selCode = this.val();
          if (selCode == myCode) {
              dojo.attr('#submit', disabled);
          }
          dojo.stopEvent(evt);
      });
  });
  </code></pre>
  
  <hr>
  
  <pre><code>&lt;select name="codes" id="codes" class="codes"&gt;
      &lt;option selected="selected" value=""&gt;Select Below&lt;/option&gt;
      &lt;option value="AA"&gt;AA&lt;/option&gt;
      &lt;option value="BB"&gt;BB&lt;/option&gt;
      &lt;option value="CC"&gt;CC&lt;/option&gt;
      &lt;option value="DD"&gt;DD&lt;/option&gt;
  &lt;/select&gt;
  </code></pre>