使用基于复选框的jQuery隐藏多个复选框组 [英] Hiding a Multiple Checkbox Group with jQuery based on a checkbox

查看:164
本文介绍了使用基于复选框的jQuery隐藏多个复选框组的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,


我正在尝试隐藏和取消选中整个Checkbox组,这是基于另一个未选中的复选框jQuery。



Mike





SharePoint工程师 - Mike

解决方案


您好,


将更改事件绑定到您的复选框。


https://stackoverflow.com/questions / 3442322 / jquery-checkbox-event-handling


通过jQuery显示/隐藏字段。



('nobr:contains(" field title")')。nearest('tr')。hide();


https://blog .devoworx.net / 2016/03/19 / show-hide-fields-based-on-choice-field-selection-using-jquery-in-sharepoint /


如果您需要进一步的h elp,你最好分享你的详细字段定义,以便我们尝试研究。


最好的问候,


Lee



Hello,

I'm attempting to hide and uncheck an entire Checkbox Group based on another checkbox being unchecked sing jQuery.

Mike


SharePoint Engineer - Mike

解决方案

Hi,

Bind change event to your checkbox.

https://stackoverflow.com/questions/3442322/jquery-checkbox-event-handling

Show/hide field by jQuery.


('nobr:contains("field title")').closest('tr').hide();

https://blog.devoworx.net/2016/03/19/show-hide-fields-based-on-choice-field-selection-using-jquery-in-sharepoint/

If you need further help, you’d better share your detailed field definition so we could try to research.

Best Regards,

Lee


这篇关于使用基于复选框的jQuery隐藏多个复选框组的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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