jQuery serialize empty result on bad HTML form

Posted on 30.12.16   Javascript jQuery

TIL that jquery’s $('#someform').serialize(); will output nothing if there’s a syntax error in the form HTML markup.

I actually added a parameter to a <select> field, so it looked like <select type="type" name="type"> , obviously I wasn’t paying much attention because type="type" shouldn’t be there at all. As soon as I removed that parameter jquery serialize would work as intended again.

hours_spent_debugging_pebkac += 1;

More on ITDB

Oracle Universal Installer - Successfully completed with errors


Finding the source for locked AD account from Event Viewer log on Domain controller


Get Linux distribution information from terminal


Change Resize Mode for all VMs in RoyalTS 4


NiceHash hacked?




Leave a Reply

Your email address will not be published. Required fields are marked *