diff --git a/index.js b/index.js index 7a1f11d..fb2455c 100644 --- a/index.js +++ b/index.js @@ -63,8 +63,8 @@ function serialize(form, options) { // If we want empty elements if (options.empty) { // for checkbox - if (element.type === 'checkbox' && !element.checked) { - val = ''; + if (element.type === 'checkbox') { + val = element.checked; } // for radio