I have a site that records building releases. Here some buildings have more than one tower, and I would like for each tower, I had the possibility to insert 4 inputs (type, footage, bedrooms, vacancies)
Something like this:
<form>
<input type="text" name="torres"><button id="addtorre">Adicionar Torre</button>
<button type="submit">Cadastrar</button>
</form>
Then, if you put 2 in the "towers" field and click "Add Tower" , you would:
<form>
<input type="text" name="torres"><button id="addtorre">Adicionar Torre</button>
<input type="text" name="tipo1">
<input type="text" name="metragem1">
<input type="text" name="dorm1">
<input type="text" name="vaga1">
<input type="text" name="tipo2">
<input type="text" name="metragem2">
<input type="text" name="dorm2">
<input type="text" name="vaga2">
<button type="submit">Cadastrar</button>
</form>