jQuery .serialize() returns empty string

In case anyone else runs into this:

I kept hitting my head, wondering why jQuery's serialize() would return an empty string for my form.

The reason was that I hadn't specified name attributes ( I was only using IDs ) for form elements, as I was dealing with the form via AJAX and hadn't had a reason to need them.

Simple fix, annoying to find

Thanks!

Thanks for posting this, you saved me time and frustration.

Thank you so much

I found your post after 2 hours of wondering....

Same here

Thanks for that :)

Made my day!

You made my day ;) Thx a lot