I have a form with array of input elements as shown below.
<form method="post" action="sample.php">
<input type="text" name="field[txt][name]" />
<input type="text" name="field[txt][sex]" />
<input type="text" name="field[txt][location]" />
<br /><br />
<input type="text" name="field[num][age]" />
<input type="text" name="field[date][pod]" />
<input type="text" name="field[date][doj]" />
<br /><br />
<input type="submit" name="submit" />
</form>
php - print_r($_POST['field']) gives me an output similar to the following when i submit the form as usual. How can I use jquery-post method to submit 'field[ ][ ]' element to get the same result?
Array(
[txt] => Array
(
[name] => sam
[sex] => male
[location] => somewhere
)
[num] => Array
(
[age] => 20
)
[date] => Array
(
[pob] => 2001-01-01
[doj] => 2001-01-01
)
)
Any help would be highly appreciated.