Side navigation
#4252 closed bug (worksforme)
Opened February 26, 2009 02:35AM UTC
Closed May 14, 2009 01:18AM UTC
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.
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
to get the elements.