I have a form like this :
<form>
<input type="text" name="employee[][name]"/>
<input type="text" name="employee[][name]"/>
</form>
And I use the result in a php file like this :
echo $_POST['employee'][0]['name'];
echo $_POST['employee'][1]['name'];
The fields are converted in arrays. It's a dynamic form, I can add or remove some fields so it is usefull to not have a fixed name for each fields.
I want to do the same thing in Javascript/JQuery. Is tried to do $('[name="employee[0][name]")
and it return an empty array.
I don't know what to do. Is there a simple way to do this?