serialize doesn't include hidden fields

Viewed 52389

I run serialize on a form, where on of the fields is hidden - and it's a very important field, which should be posted. Is there any way to easily serialize it through jQuery or should I write my own function?

6 Answers

You need set the name attribute and check the disabled attribute! The disabled field also not serialized.

Related