Checkboxes are problematic with the latest Foundation (4.1.6) for many reasons. Is there an easy way to disable Foundation from taking them over? I need the custom
class in my form
s for other reasons. How do I get Foundation to leave my HTML checkboxes alone?
I have not encountered a Foundation way of doing this, this is actually the first time I've heard this request.
You can achieve what you want by doing this:
// do this after you initialize foundation
$("form.custom").find('input[type="checkbox"]').each(function () {
$(this).removeClass('hidden-field');
$(this).next('span.custom.checkbox').remove();
});
An old post but for anyone trying this currently, there is a very easy way: data-customforms="disabled"
works on any custom input as far as I can tell.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With