I have a form where users can add input fields with jQuery.
After submitting the
HTML:
JS:
var tasks= new Array(); $('input[name^="task"]').each(function() { tasks.push($(this).val()); });