title: Can the value obtained by dijit.byId('').value be compared to a String?
body: <p>I am relatively new to <strong>Spring MVC</strong> and <strong>Dojo/Dijit</strong> widgets and I am stuck with a problem. I need to unblock a particular div based on the option selected from the dropdown i.e. when the user selects the reason as "Unexperienced" I am supposed to unblock a <code>div</code> with <code>id = "unexpUser" style="display:none;"</code> to collect some additional information. </p>
  
  <p>JSP -</p>
  
  <pre><code>&lt;select data-dojo-type="dijit.form.Select" name="userReason" id = "reason"&gt;
      &lt;option value="opt0"&gt;Experienced&lt;/option&gt;
      &lt;option value="opt1"&gt;Not experienced&lt;/option&gt;
  &lt;/select&gt;
  </code></pre>
  
  <p>JC -</p>
  
  <pre><code>&lt;script&gt;
  if(dijit.byId('reason').value == "opt1"){
      unexpUser.style.display = 'block';  
      }
  &lt;/script&gt;
  </code></pre>
  
  <p>When the page loads, the option displayed on the dropdown is "Experienced". When I change the option to "Not experienced" , I need to unblock the div but this particular code doesn't seem to be the right code for comparing. Please help. </p>