diff --git a/jquery.form.js b/jquery.form.js index 591ad6f1..ce421dc5 100644 --- a/jquery.form.js +++ b/jquery.form.js @@ -947,7 +947,7 @@ $.fn.formToArray = function(semantic, elements) { var form = this[0]; var formId = this.attr('id'); - var els = semantic ? form.getElementsByTagName('*') : form.elements; + var els = (semantic || form.elements === undefined) ? form.getElementsByTagName('*') : form.elements; var els2; if (els && !/MSIE [678]/.test(navigator.userAgent)) { // #390