In this video Mohammad Azam will demonstrate how to select checkboxes inside the GridView control using JQuery library.

 

In this video Mohammad Azam will demonstrate how to select checkboxes inside the GridView control using JQuery library.

Code:

$(document).ready(function()
{
   $("#chkAll").click(function()
   {
        this.checked = !(this.checked);
       
        $("#gvCategories input:checkbox").attr("checked",
        function()
        {
            this.checked = !(this.checked);
        });
   });
       
});

[Play the Video]