title: change event not working for a textbox when the value is assigned externally
body: <p>I have a textbox and a button.
  When I click the button, it sets certain value in the textbox.
  I want to submit the page whenever the value of the textbox is changed.</p>
  
  <p>Please check <a href="http://jsfiddle.net/soumyazyx/GTpRC/4/" rel="nofollow">here</a></p>
  
  <p>HTML:</p>
  
  <pre><code>&lt;input type='text' class="set" size=50&gt;
  &lt;input type="button" id="click" value="Click" /&gt;
  </code></pre>
  
  <p>JQuery:</p>
  
  <pre><code>$(document).ready(function () {
      $("input").change(function () {
          alert("Changed!");
      });
      $("#click").click(function () {
          $('.set').val('Why am I not getting the alert saying  - Changed! ');
      });
  });
  </code></pre>
  
  <p>I am able to trigger the change event when I am editing the textbox content.I know that the change event gets triggered when the textbox loses focus.This is not the case when I am changing the value by button click.</p>
  
  <p>I have seen answers which monitors the textbox for change at a specified time interval , say 0.1 sec. </p>
  
  <p>Is there no other way for this to be done. 
  Thanks.</p>
  
  <p><em><strong>EDIT - 1</em></strong>
  *<em>Sorry for not being clear</em>* in my original post itself.</p>
  
  <p>My requirement is to trigger an event whenever the inputbox content is changed - Not necessarily by the click of a button.I have added a button just to explain the problem.
  The change may be due to any reason.</p>
  
  <p>So,the code(inside the button click function)  </p>
  
  <pre><code>$('.set').val('Hello').change();
  </code></pre>
  
  <p>will not solve the problem.
  Hope I am clear this time.</p>
  
  <p>Please suggest.</p>