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

Create a cmd alias/shortcut for issuing commands on remote computer


Fix twitchy/wobbling touchpad for Ubuntu based distributions


Turn off CTRL + ALT + DEL at login prompt Windows 10


Managing WiFi profiles in Windows 10


How to debug a non starting application with ProcMon