Modify ↓
Ticket #4252 (closed bug: worksforme)
serialize() just can serialize the <form> area but not other div area
| Reported by: | pdodge | Owned by: | |
|---|---|---|---|
| Priority: | major | Milestone: | 1.4 |
| Component: | ajax | Version: | 1.3.2 |
| Keywords: | serialize | Cc: | |
| Blocking: | Blocked by: |
Description
jquery version 1.3 no longer supported the <input> elements contained in a <div> area that want to serialize, as follow:
<div id="formdiv">
<input name="username" id="username" value="myname" />
</div>
running javascript:
$("#formdiv").serialize();
this would take effect in V1.2, but does support in 1.3.2 now.
Change History
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

I don't think that has ever been documented as supported. You should provide either a form element or a collection of input elements.
http://docs.jquery.com/Ajax/serialize
In this case you can use $("formdiv input") to get the elements.