title: How to get option text from a dijit.form.Select?
body: <p>I have a dijit.form.Select on my page:</p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;c:set var="qualId" value="${previous.qualification.id}" /&gt;
  &lt;select id="qualification" name="qualification" dojoType="dijit.form.Select" onchange="checkForPHD()"&gt;
      &lt;option value="-1" label="                      "&gt; &lt;/option&gt;
      &lt;c:forEach items="${requestScope.qualifications}" var="qualItem"&gt;
          &lt;c:choose&gt;
          &lt;c:when test="${qualId eq qualItem.id}"&gt;
              &lt;option value="${qualItem.id}" selected = "selected"&gt;${qualItem.name}&lt;/option&gt;
          &lt;/c:when&gt;
          &lt;c:otherwise&gt;
              &lt;option value="${qualItem.id}"&gt;${qualItem.name}&lt;/option&gt;
          &lt;/c:otherwise&gt;
          &lt;/c:choose&gt;
      &lt;/c:forEach&gt;
  &lt;/select&gt;
  </code></pre>
  
  <p>Then some javascript that I'm trying to use to set some text to the TEXT of the option chosen from the select box;</p>
  
  <pre class="lang-javascript prettyprint-override"><code>    function checkForPHD() {    
          dojo.byId('clazzPHDMessage').innerHTML = dojo.byId('qualification')
             .attr('displayedValue');
      }
  </code></pre>
  
  <p>I'd read that the .attr('displayedValue') was suppose to get the text from the selected option in a dijit.form.Select but it doesn't seem to do much? .attr('value') got that values ok but I need the TEXT?</p>