当使用jquery在网格视图中选中另一个复选框时,如何取消选中复选框 [英] how to uncheck a checkbox when another is checked in grid view using jquery

查看:43
本文介绍了当使用jquery在网格视图中选中另一个复选框时,如何取消选中复选框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

当使用jquery在网格视图中检查另一个时,如何取消选中复选框,

请建议我。

Hi All,
how to uncheck a checkbox when another is checked in grid view using jquery,
Please Suggest me.

推荐答案

在这种情况下不要使用复选框,而是使用单选按钮。



这是在jQuery中检查或取消检查的方式:< a href =http://learn.jquery.com/using-jquery-core/faq/how-do-i-check-uncheck-a-checkbox-input-or-radio-button> http:// learn .jquery.com / using-jquery-core / faq / how-do-i-check-uncheck-a-checkbox-input-or-radio-button [ ^ ]。



-SA
Don't use check boxes in this case, use radio button instead.

This is how checking or unchecking done in jQuery: http://learn.jquery.com/using-jquery-core/faq/how-do-i-check-uncheck-a-checkbox-input-or-radio-button[^].

—SA


这篇关于当使用jquery在网格视图中选中另一个复选框时,如何取消选中复选框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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