asp.net中的复选框 [英] checkboxes in asp.net

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

问题描述

如何在asp.net中使用javascript帮助使两个复选框互斥...任何一个帮助..

How to make two checkboxes mutually exclusive with the help of javascript in asp.net...any one help..

推荐答案

两个复选框相互独家借助于asp.net中的javascript

选项1:为什么要使用Checkbox?使用RadioButtons(可建议的)

选项2:如果你真的想使用复选框,请尝试以下方法:

two checkboxes mutually exclusive with the help of javascript in asp.net
Option 1: Why use Checkbox if so? Use RadioButtons (suggestible)
Option 2: If you really want to use checkbox, then try following:
<script type="text/javascript">


document )。ready( function (){
// 切换toggleContainer div中的所有复选框
(document).ready(function(){ //toggle all checkboxes in toggleContainer div


' #toggleContainer:checkbox')。bind(' change' function (){
var thisClass =
('#toggleContainer :checkbox').bind('change',function(){ var thisClass=


这篇关于asp.net中的复选框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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