title: Avoiding onChange on ComboBox when chaning selection dynamically
body: <p>I have a combobox for which I have a validation that a change in selection should be reverted back on meeting a condition.</p>
  
  <p>I have detected the condition but when I change the value and displayedValue of combobox, the onChange associated with the combobox gets fired. Following is the code I am using to change the selection:</p>
  
  <pre><code>dijit.byId('scheduleName').set('value',val,false);
  dijit.byId('scheduleName').set('displayedValue',displayVal,false);
  </code></pre>
  
  <p>I have also tried to set the onChange to blank before firing above code and then re attaching the onChange code as below:</p>
  
  <pre><code>dojo.connect(dijit.byId('scheduleName'),'onChange','');
  dijit.byId('scheduleName').set('value',scheduleNameVal,false);
  dijit.byId('scheduleName').set('displayedValue',trim(String(scheduleNameName)),false);
  dojo.connect(dijit.byId('scheduleName'),'onChange', "hideGrid");
  </code></pre>
  
  <p>hideGrid is a javascript function. I am using Dojo 1.8</p>