Skip to main content

Bug Tracker

Side navigation

#8928 closed bug (invalid)

Opened April 20, 2011 09:55PM UTC

Closed April 20, 2011 10:03PM UTC

Last modified August 03, 2011 09:55PM UTC

Form Serialize Not Including Elements Inside Tables

Reported by: Owned by:
Priority: undecided Milestone:
Component: ajax Version: 1.5.2
Keywords: Cc:
Blocked by: Blocking:


I'm using the jQuery library found at and I just found a bug in the .serialize() function for forms.

One of the forms I have contains a table and that holds more input elements and when I tried to submit the form using the jQuery serialize function I get this:


I should be getting something like this:


The following block is my entire form.

Please let me know if and when there is a fix for this bug.

<form id="userInfo" name="user" method="post" action="" title="Change any of these values to update your user information">

<input type="hidden" value="" name="oldPass" />

<input type="hidden" value="" name="newPass" />

<input type="hidden" value="" name="question" />

<input type="hidden" value="" name="answer" />




<label for='username'>Username:</label>



<input id='username' type="text" value="" />





<label for='email'>Email Address:</label>



<input id="email" type="email" value="" />





<label for="phone">Phone Number:</label>



<input id="phone" type="text" value="" />




<div style="text-align:center;">

<span id="user" style="color:red;font-weight:bold"></span><br />

<input type="submit" value="Submit" />

<input type="reset" value="Reset" />



Attachments (0)
Change History (4)

Changed April 20, 2011 10:03PM UTC by rwaldron comment:1

resolution: → invalid
status: newclosed

According to the API, you're doing it wrong.

serialize() requires a name attribute

Changed April 20, 2011 10:03PM UTC by rwaldron comment:2

component: unfiledajax

Changed April 20, 2011 10:15PM UTC by comment:3

The initial results were from the following command


Changed August 03, 2011 09:55PM UTC by anonymous comment:4

Even when there are name attributes, it does not work with a table in form in IE.