[jQuery] Re: $(form).serialize() does not include submit button data

2010-01-04 Thread Milan Andric
Makes sense, that's also a simple workaround. Thanks. -- Milan

[jQuery] Re: $(form).serialize() does not include submit button data

2010-01-04 Thread coopster
Exactly. jQuery doesn't know which was clicked by the time it gets around to the serialize method. jQuery knows all the form input types, but which submit button was clicked? Which input type image was clicked? It is because of lines 3296 and 3297 of the serialize function in jQuery. Here are

[jQuery] Re: $(form).serialize() does not include submit button data

2010-01-03 Thread Dave Methvin
> I would think the submit button data would also be included when doing > $(form_obj).serialize()? When you submit a form manually, the value of the submit button clicked is sent as part of the form. If you serialize the form using Javascript, no button was clicked so none of them are serialized.