• NA
  • 320
  • 0

Change GridView checkbox text value when clicked in Javascript

Aug 14 2021 7:07 PM

I want to be able to change the text value of checkbox id="chkBxHeader" to Check when clicked and Uncheck again in javascript

 <asp:GridView ID="GridView1" runat="server" AllowPaging="True"  DataKeyNames="UserId"
            AllowSorting="True" AutoGenerateColumns="False" DataSourceID="SqlDataSource1" 

                <asp:TemplateField HeaderText="Select" >
                        <asp:CheckBox ID="chkBxSelect" runat="server"    />
                        <asp:CheckBox ID="chkBxHeader" Text="Uncheck"  onclick="javascript:HeaderClick(this);" runat="server" />

Answers (3)