why my custom jquery code stopped working on a multipage webform after upgrade to WF x6
Following the tips in this post, I changed the code as follows and it worked:
(function ($, Drupal) {
 Drupal.behaviors.myBehavior = {
  attach: function (context, settings) {
    $('input.countme').change(function(){   
        var a =  $(&quot;input.countme:checked&quot;).length // count all checked checkboxes with the css class &quot;countme&quot;
        $(&quot;.cm_score&quot;).val(a)  //update the value of the textfield that has the class &quot;.cm_score&quot; 
    }); 
 }
};
})(jQuery, Drupal);