Header Itemtemplate - checkbox

VBdotnet2005
VBdotnet2005 used Ask the Experts™
on
How to check if checkbox in Header itemtemplate is checked using javascript. - ASP.NET. If not checked, I need to pop up a message.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Software Engineer
Commented:

if ($('#<%=DataGrid.ClientID %> >tbody >tr >th:first >input:checkbox').attr('checked')) 
{
    alert("Checked");
}
else 
{
    alert("Not Checked");
}

Open in new window

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial