Skip to main content

Bug Tracker

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.

Attachments (0)
Change History (2)

Changed February 28, 2009 07:29PM UTC by dmethvin comment:1

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.

Changed May 14, 2009 01:18AM UTC by dmethvin comment:2

resolution: → worksforme
status: newclosed

Try the proposed solution; if it doesn't work, reopen the ticket.