如何在Zurb Foundation中禁用自定义复选框?

at.*_*at. 5 zurb-foundation

由于许多原因,最新的基金会(4.1.6)的复选框存在问题.是否有一种简单的方法可以禁止基金会接管它们?我出于其他原因需要custom上课form.如何让Foundation单独留下我的HTML复选框?

von*_* v. 3

我还没有遇到过基金会这样做的方式,这实际上是我第一次听到这个要求。

您可以通过这样做来实现您想要的:

// do this after you initialize foundation
$("form.custom").find('input[type="checkbox"]').each(function () {            
    $(this).removeClass('hidden-field');
    $(this).next('span.custom.checkbox').remove();
});
Run Code Online (Sandbox Code Playgroud)