Count selected checkboxes

porlhews

Member
In fabrik 3.0 I used the following javascript to count the number of selected checkboxes:

Code:
var numChecked = this._getSubElements().filter(function (c) {return c.value !== '0' ? c.checked : false}).length;

Does anyoe know how to do this in Fabrik 3.1? I think the problem is with _getSubElements, but I don't know what to replace it with?

Thanks in advance,

Paul Hughes
 
We are in need of some funding.
More details.

Thank you.

Members online

No members online now.
Back
Top