我怎样才能找到是否选择了cheackbox? [英] How can i Find whether cheackbox is selected or not?

查看:313
本文介绍了我怎样才能找到是否选择了cheackbox?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何查找cheackbox是否被选中????

How can i Find whether cheackbox is selected or not????

推荐答案

if(CheckBox1.Checked)
{
    //Do stuff
}
else
{
    //Do stuff
}


客户端:


(''#''+ id).is(:checked)

返回是否选中复选框bool值。





服务器端:

您可以按照解决方案1,它将为您提供复选框的检查状态
(''#'' + id).is(":checked")
returns whether the check box is checked or not bool value.


Server Side:
you can follow solution 1 which will give you checked status of the Check Box


这篇关于我怎样才能找到是否选择了cheackbox?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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