function selectAll(invoker)
{
var inputElements = document.getElementsByTagName('input');
for (var i = 0 ; i <>
{
var myElement = inputElements[i];
if (myElement.type === "checkbox")
{
myElement.checked = invoker.checked;
}
}
}
call the above javascript function in
asp:CheckBox ID="chkAll" runat="server" OnClick="selectAll(this)" OnCheckedChanged="CheckAll" AutoPostBack="True"
function selectAll(invoker)
{
var inputElements = document.getElementsByTagName('input');
for (var i = 0 ; i <>
{
var myElement = inputElements[i];
if (myElement.type === "checkbox")
{
myElement.checked = invoker.checked;
}
}
}
function selectAll(invoker)
{
var inputElements = document.getElementsByTagName('input');
for (var i = 0 ; i <>
{
var myElement = inputElements[i];
if (myElement.type === "checkbox")
{
myElement.checked = invoker.checked;
}
}
}
function selectAll(invoker)
{
var inputElements = document.getElementsByTagName('input');
for (var i = 0 ; i <>
{
var myElement = inputElements[i];
if (myElement.type === "checkbox")
{
myElement.checked = invoker.checked;
}
}
}
No comments:
Post a Comment