Skip to main content

Bug Tracker

Side navigation

#3588 closed feature (invalid)

Opened November 10, 2008 11:58AM UTC

Closed November 10, 2008 02:45PM UTC

Last modified March 12, 2013 05:05PM UTC

Allow sub-section of form to be serialized

Reported by: pbowyer Owned by:
Priority: major Milestone: 1.3
Component: ajax Version: 1.2.6
Keywords: Cc: pbowyer, flesler
Blocked by: Blocking:
Description

Often I need to do partial form submissions (for inline AJAX lookups). The built-in serialize() and serializeArray() methods will only work when applied to the <form> itself, and not to sub-sections of the form.

Adding this behaviour would be great and mean I don't have to roll my own serialization code!

Attachments (1)
  • test.html (1.4 KB) - added by pbowyer November 10, 2008 11:59AM UTC.

    Demonstration file, showing how serialization doesn't work

Change History (3)

Changed November 10, 2008 02:45PM UTC by flesler comment:1

cc: → pbowyer, flesler
resolution: → invalid
status: newclosed
type: bugfeature

serialize does accept single elements.

$('form *').filter('.foo').serialize()

Changed March 12, 2013 04:55PM UTC by anonymous comment:2

I have come across this, especially with steps forms any one fixed this yet?

Changed March 12, 2013 05:05PM UTC by dmethvin comment:3

As the comment above says, just serialize whichever elements you'd like.