I have multiple input fields like this:
<input type="text" name="childage[3]" placeholder="0"/>
<input type="text" name="childage[8]" placeholder="0"/>
<input type="text" name="childage[12]" placeholder="0"/>
I want to get them into jQuery and pass them with AJAX to php but remember the keys (3, 8, 12). Is this possible?
I tried until now the following:
$('input[name="childage[]"]');
$('input[name="childage"');