title: Html checkBox onchange not working
body: <pre><code>&lt;input class="jProblemClass" id="Checkbox{%= ID %}" type="checkbox" onchange="problemPicker.onChangeProblemCheckBox('{%=ID %}');"/&gt;
  </code></pre>
  
  <p>After first check or uncheck nothing happens. Afetr second click, call my function <code>problemPicker.onChangeProblemCheckBox</code>, but i get ID first check. Why? Can help me anybody?</p>
  
  <pre><code>onChangeProblemCheckBox: function(id) {
      if ($('#CheckBox' + id).attr("checked") == true) {
          problemPicker.addToCheckProblems(id);
  
          var checkboxes = $('.jProblemClass:checked');
  
          if ((checkboxes.length &gt; general.limit) &amp;&amp; (general.limit != 0)) {
              alert('The limit of ' + general.limit + ' problems exceeded. Please deselect ' + (checkboxes.length - general.limit).toString() + '.');
          }
      } else {
          problemPicker.delFromCheckProblems(id);
      }
  },
  </code></pre>