title: HTML JavaScript onChange Handler is not called when updated programatically
body: <p>I have found an odd anomaly with HTML text boxes and JavaScript that I have narrowed down to being a html/javascript peculiarity and I'm hoping someone can educate me on.</p>
  
  <p>I have downloaded and implemented a calendar plug-in that creates a simple layer with a calendar and on selection, passes the selected date back to the text box.</p>
  
  <p>What I want to do is catch when the text box changes (using onchange) and then call an Ajax function to update the database...</p>
  
  <p>The problem is, onchange never gets called... I have been able to prove it with this very simple code below... When the button is clicked it changes the value which should then trigger the onchange and display an alert box...</p>
  
  <pre><code>&lt;input type="button" name="setValue" id="setValue" value="setValue" onClick="document.getElementById('textinput').value='Updated'"&gt;&amp;nbsp;
  &lt;input type="button" name="clearValue" id="clearValue" value="clearValue" onClick="document.getElementById('textinput').value=''"&gt;&lt;br&gt;
  &lt;input type="text" name="textinput" id="textinput" onChange="alert(this.name)"&gt;
  </code></pre>
  
  <p>Is this standard? Is there a workaround?</p>