Have a field of a grid with a client template like this. Includes a "check all " box in the header.
columns.Template(@<text></text>).ClientTemplate("<input type='checkbox' id='gridCheckbox' onclick='handleClick(this);' value='#= LineItemId #' #= Selected ? 'checked':'' # class='chkbx' />") .HeaderTemplate("<input type='checkbox' id='masterCheckBox' onclick='checkAll(this)'/>").Width(50);
I have a button that when clicked needs to grab the value of any checkbox (its value is a number) that is checked in this field, and put into a list or array. This list should not include the checkbox in the header. I seen this example but its not quite what im trying to do, but similar idea. I need a jquery selector to get a list of those checkboxes that are checked and the value attribute put into an array.