mercredi 14 septembre 2016

Select all checkbox in the same column

I am trying to implement something similar to Checking checkbox in column

I have two select all checkboxes in a table and selecting one would select all the checkboxes of the same column.

It an ASP.NET GridView. Plunker

function CheckHeaderCheckboxAll(obj, gridname) {

    var objId = obj.id;


    var table= $(obj).closest('table');
    $('td input:checkbox',table).prop('checked',this.checked);


}

Can someone please help me with this?




Aucun commentaire:

Enregistrer un commentaire