I have a problem regarding dynamically generated fields. These fields have different types and their type depends on what is stored on my db (text, select, radio, etc.). They are generated in my PHP script and they have the same name (ans[], which is an array).
<input type='radio' name='ans[]' value='1'>
<input type='radio' name='ans[]' value='2'>
<input type='radio' name='ans[]' value='3'>
<select name='ans[]'>
<option value='desktop'>Desktop</option>
<option value='laptop'>Laptop</option>
<option value='monitor'>Monitor</option>
<option value='printer'>Printer</option>
</select>
<input type='text' name='ans[]' value=''>
I want to get the input values of each field using JQuery. Is it possible?