复选框警报,如果只有一个复选框 [英] Check box Alert if only One check Box

查看:66
本文介绍了复选框警报,如果只有一个复选框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我正在研究ASP,VBScript和Javascript。

我在ASP VBScript中创建了一个网格...并且在一列中使用了复选框.. ....


问题是如果网格中有一条记录显示为:


即使记录是选中,警报就像(请选择要编辑或删除的记录)...


以下是我在按钮上使用的javascript代码点击

[代码]:

函数编辑()

{

var ctr = 0;

for(i = 0; i< document.managecontribution.checkmanage.len gth; ++ i)

{

if(document.managecontribution.checkmanage [i]。已检查)

{

ctr = ctr + 1;


}


}


[code]



我也在使用Html提交键入不是按钮类型


先谢谢

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.managecontribution.checkmanage.len gth;++i )
{
if (document.managecontribution.checkmanage[i].checked)
{
ctr=ctr+1;

}

}

[code]


Also i am using the Html "Submit" type not the "button" type


Thanks in Advance

推荐答案

大家好,

我是在ASP,VBScript和Javascript上工作​​。

我在ASP VBScript中创建一个网格...并在一列中使用复选框......


问题是,如果网格中有一条记录显示为:


即使选择了记录,警报也就像(请选择要编辑或删除的记录) ...


下面是我在按钮上使用的javascript代码点击

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

展开 | 选择 | Wrap | 行号



大家好,

我正在研究ASP ,VBScript和Javascript。

我在ASP VBScript中创建一个网格...并在一列中使用复选框......


问题是如果网格中有一条记录显示为:


即使选择了记录,警报也就像(请选择要编辑或删除的记录)...


下面是我在按钮上使用的javascript代码点击

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

展开 | 选择 | 换行 | 行号


重复问题你不会得到更好的答案..
You won''t get any better answers by repeating the question..


这篇关于复选框警报,如果只有一个复选框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆