I am having a set of 2 input fields for which I am giving the option to add a new pair of input fields dynamically using AlpineJS.
In PHP we would name these input fields as
<input type="text" name="age[]"/>
and access the data as $_POST['age'][2]
What’s Django’s equivalent ? I came across formset but I am wondering if I can still use age[]
because I’m having this dynamic form generated by AlpineJS and not using AgeFormSet = formset_factory(AgeForm, extra=1)