#14594 closed bug (duplicate)
wrong data at form serialize
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | undecided | Milestone: | None |
Component: | unfiled | Version: | 2.0.3 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
it's not possible use input's in form with name "elements" Please, see example:
<form id="form">
<input name="foo" value="foo"> <input name="boo" value="boo"> <input name="elements" value="bug">
</form> <script src="ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script> <script>
var $form = $('#form'); console.log($form.serializeArray()); console.log($form.serialize());
</script>
Output:
Array[1] 0: Object name: "elements" value: "bug" proto: Object length: 1 proto: Array[0]
test.html:9
elements=bug
Change History (7)
comment:1 Changed 9 years ago by
comment:2 Changed 9 years ago by
it's not possible use input in form with name "elements" Please, see example: http://jsfiddle.net/KJLxA/
comment:3 Changed 9 years ago by
Resolution: | → worksforme |
---|---|
Status: | new → closed |
comment:4 Changed 9 years ago by
in this example output data from .serialize must be
foo=foo&boo=boo&elements=bug
but, it's only
elements=bug
comment:5 Changed 9 years ago by
Resolution: | worksforme |
---|---|
Status: | closed → reopened |
Sorry, I meant to close this cantfix.
comment:6 Changed 9 years ago by
Resolution: | → duplicate |
---|---|
Status: | reopened → closed |
Duplicate of #13651.
http://jsfiddle.net/KJLxA/