Opened 14 years ago
Closed 14 years ago
#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: | |
Blocked by: | Blocking: |
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 (2)
comment:1 Changed 14 years ago by
comment:2 Changed 14 years ago by
Resolution: | → worksforme |
---|---|
Status: | new → closed |
Try the proposed solution; if it doesn't work, reopen 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.