This topic is locked

Calculating the number of selected checkbox on the List page

3/11/2015 10:36:17 AM
PHPRunner Tips and Tricks
Sergey Kornilov admin

Q: How can I determine the number of checkboxes that are selected in the list screen for doing an edit.
A: Assuming that you need to access this info from Javascript event you can use the following:

$("input[name='selection[]']:checked").length


i.e.

alert($("input[name='selection[]']:checked").length);