title: Checkbox and onchange method usage
body: <p>I have a table with some rows that have checkboxes on the first column where if user clicks, it calls some javascript methods that disable the other fields of the respective rows.</p>
  
  <p>The structure of these inputs is this:</p>
  
  <pre><code>&lt;input type="checkbox" name="ans_R2057321_Q2060122" id="ans_R2057321_Q2060122" value="2002241" onclick="matrix.disableFields(this, 'R2057321');recalculateRowFormulas('2057321'); alignTDs();" /&gt;
  </code></pre>
  
  <p>I implemented a link where when user clicks on it, it has to select all these checkboxes, so I did it this way:</p>
  
  <pre><code>function noQuoteAllRowsOfCurrPage(){
      jQuery("input:checkbox[id^=ans_R]").each(function(i,e) {
          jQuery(e).prop('checked', true);
      });
  }
  </code></pre>
  
  <p>This simply iterates in each checkbox on the screen whose id starts with ans_R, and then check the CB state to true. It does works, but the problem is that the javascript functions called on the onclick property of the input checkboxes aren't running. First thing I did was changing from onclick to onchange, which should be the correct way to do that, since the state of checkbox is changing, but somehow it doesn't work... any ideas what of what can I do?</p>