gruszczy gruszczy - 9 months ago 68
jQuery Question

serialize doesn't include hidden fields

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?

Answer Source

Serialize does include all enabled input elements with a name attribute.