var fields = {}; $('#formID').find(":input").each(function() { if ( this.tagName !== 'BUTTON' ) fields[this.name] = $(this).val(); });