Skip to content

Commit b15b338

Browse files
committed
added required attribute value of input elements to formToArray return object
1 parent 362cc6f commit b15b338

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jquery.form.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -812,7 +812,7 @@ $.fn.formToArray = function(semantic, elements) {
812812
else if (v !== null && typeof v != 'undefined') {
813813
if (elements)
814814
elements.push(el);
815-
a.push({name: n, value: v, type: el.type});
815+
a.push({name: n, value: v, type: el.type, required: el.required});
816816
}
817817
}
818818

0 commit comments

Comments
 (0)