Hi All,
I am working on ASP , VBScript and Javascript.
I am making a grid in ASP VBScript..and eneter checkboxes in one column......
The problem is that if there is one record in the grid it is showing as :
Even If the record is selected ,the alert is like(Please select the record to edit or delete)...
Below is the javascript code that i am using on Button click
[Code]:
function Edit()
{
var ctr=0;
for (i=0;i<document .managecontribu tion.checkmanag e.length;++i )
{
if (document.manag econtribution.c heckmanage[i].checked)
{
ctr=ctr+1;
}
}
[Code]
Also i am using the Html "Submit" type not the "button" type
Thanks in Advance
I am working on ASP , VBScript and Javascript.
I am making a grid in ASP VBScript..and eneter checkboxes in one column......
The problem is that if there is one record in the grid it is showing as :
Even If the record is selected ,the alert is like(Please select the record to edit or delete)...
Below is the javascript code that i am using on Button click
[Code]:
function Edit()
{
var ctr=0;
for (i=0;i<document .managecontribu tion.checkmanag e.length;++i )
{
if (document.manag econtribution.c heckmanage[i].checked)
{
ctr=ctr+1;
}
}
[Code]
Also i am using the Html "Submit" type not the "button" type
Thanks in Advance
Comment