如何删除复选框值? [英] How to remove the checkbox values ?

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

问题描述

我有一个复选框,其中包含从数据表中获取的值(例如:名称)。我需要在保存表单中的详细信息后删除选中的值。





例如:如果复选框的值为Sam ,Ferin,Robin等......如果我只选择Sam并保存表格,则在保存事件后不应该看到Sam。提交表单后,应删除Sam,复选框应仅显示Ferin和Robin。



任何人都可以帮我解决这个问题吗? ??





提前致谢..

I have a checkbox which consists of values(Eg: Names) taken from a datatable. I need to remove the checked values after saving the details in a form.


Eg: If the checkbox has values like "Sam","Ferin","Robin" etc.., and if i select only "Sam" and Save the form, "Sam" should not be seen after the save event. Once the form is submitted, "Sam" should be removed and the checkbox should show only "Ferin" and "Robin".

Can anyone help me out with this???


Thanks in advance..

推荐答案

Quote:

首先,我从另一个表中获取名称,并在表单中的checkboxlist中加载名称。并且选中的值将保存在不同的表中。现在我的要求是从复选框列表中删除已检查的名称。

Firstly, I am fetching the names form another table and loading the names in the checkboxlist in a form. and the checked values will be saved in a different table. Now my requirement is to remove the checked name from the checkboxlist.

在获取名称时,您可以加入另一个表,只获取那些在另一个表中没有检查状态的表。



就这么简单!!!

While getting the names, you can just join the other table and get only those which don't have the checked status in that other table.

As easy as that !!!


这篇关于如何删除复选框值?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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