I would like the 'select all' checkbox at the top, to only select the rows that are enabled, just two rows in this case. I would like the 'select all' checkbox to function as it would normally, but only take into account the two rows that are enabled.
e.g.
. tick the 'select all' checkbox and both enabled rows are selected.
. untick the 'select all' checkbox and both enabled rows are deselected.
. tick the first enabled checkbox and then tick the second enabled checkbox and the 'select all' checkbox at the top becomes ticked and vice versa.
I've tried several different methods but each one has not quite worked, including various server side code and jQuery.
The problem with the most obvious approach is that the 'select all' checkbox at the top will end up ticking all the checkboxes regardless of whether they are enabled or not.
Many thanks in advance
Mike