I've got a problem with the form.serialize() function in jQuery. When I try to submit my serialized form via AJAX, serialize() only returns me an empty string.
Perhaps there's a problem with my HTML outline:
<form id="category-dynamic" class="dynamic"> <fieldset id="inner-fieldset"> <legend id="new-category"> <label for="category-name">Category Name: </label> <input type="text" name="category-name" value="" /> </legend> <ul id="category-fields"> <li> <label>Field #1:</label><br /> <input type="text" name="fields[]" value="" /> </li> <li> <label>Field #2:</label><br /> <input type="text" name="fields[]" value="" /> </li> </ul> </fieldset> </form> In my jQuery function I simply call:
$.post("processor.php", $('#category-dynamic').serialize(), function(data){ // data handling here... });
<?php print_r($_POST); ?>on processor.php. Make sure and have console open.