如何在jQuery中删除CheckBoxLists的checkedItems [英] How to remove the checkedItems of CheckBoxLists in Jquery

查看:144
本文介绍了如何在jQuery中删除CheckBoxLists的checkedItems的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,我有两个CheckBoxLists,它们的数据相同.如果我选中复选框列表中的复选框并自动删除第二个复选框列表,并且还取消选中复选框中的复选框,并自动将相同项添加到第二个复选框列表中.
请任何人帮助我.

Hi Guys, I have a two CheckBoxLists with same data. If i check the checkboxes of checkboxlist and automatically removes the second checkboxlist and also if uncheck the checkboxes of checkboxlist and automatically adds same item into second checkboxlist.

Please any one help me.

推荐答案

您可以尝试此解决方案.解决方案1 ​​
如何使用JQUERY选中/取消选中CheckBoxList中的复选框 [
You can try this solution. solution 1
How to check/uncheck the checkboxes in CheckBoxList using JQUERY[^]


尝试或多或少像这样

单击单选按钮调用此功能

if(formname.radiolist [i] .checked)
{
formname.radiolist [j] .checked = false;
}
Try more or less like this

call this function on click of radiobutton

if(formname.radiolist[i].checked)
{
formname.radiolist[j].checked=false;
}


这篇关于如何在jQuery中删除CheckBoxLists的checkedItems的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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