Bug Tracker

Ticket #4252 (closed bug: worksforme)

Opened 7 years ago

Last modified 6 years ago

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:


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" />


running javascript:


this would take effect in V1.2, but does support in 1.3.2 now.

Change History

comment:1 Changed 7 years ago by dmethvin

I don't think that has ever been documented as supported. You should provide either a form element or a collection of input elements.


In this case you can use $("formdiv input") to get the elements.

comment:2 Changed 6 years ago by dmethvin

  • Status changed from new to closed
  • Resolution set to worksforme

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

Note: See TracTickets for help on using tickets.