title: Jquery .change function is not working through javascript
body: <p>.change call in jquery is not working when I change value through Javascript.</p>
  
  <p>For example: </p>
  
  <pre><code> $(document).ready(function () {
       $(function () {
           $("select#product").change(function () {
               if (document.all("fatcaSearchDO.bankId").disabled.value = true) {
                   fnFieldEnableClass(document.all("fatcaSearchDO.bankId"));
               }
               $.ajax({
                   type: 'GET',
                   url: 'ViewHistoryDataAction.do',
                   data: {
                       product: $(this).val()
                   },
                   dataType: 'JSON',
                   cache: false,
                   success: function (j) {
                       var options = '';
                       for (var k = 0; k &lt; j.length; k++) {
                           options += '&lt;option value="' + j[k] + '"&gt;' + j[k] + '&lt;/option&gt;';
                       }
                       $("select#BankID").html(options);
                   }
               });
           });
       });
   });
  
  
  
  
  &lt;html:select name="ViewHistoryForm" property="fatcaSearchDO.bankId" styleClass="login-textbox" onchange="fnGlobalChange();" onclick="checkRadio('1')" onfocus = "checkRadio('1')" styleId="BankID" style="width=250"&gt;
  
  &lt;html:select name="ViewHistoryForm" property="fatcaSearchDO.product" styleClass="login-textbox" onchange="fnGlobalChange();" onclick="checkRadio('1')" onfocus = "checkRadio('1')" styleId="product" style="width=250"&gt;
  </code></pre>
  
  <p>Here when I try to change the drop down of "product" its calling action and the respective bank id values are populated. Now, when I try to change the value of "product" through javascript, for instance</p>
  
  <pre><code>&lt;input type="button" onclick="changeProd()"&gt;
  
  function changeProd(){
      document.all("fatcaSearchDO.product").value='CC';
  
  }
  </code></pre>
  
  <p>the change function is not working.</p>