Alright, So basically I got a website that recieves a number of inputs, like lets say name, age, weight... After all the inputs, the text appears in a text area on the same website. I need the website to offer the function to add more levels, for example you click 'add level' and a dynamic new inputs appear that allow you to add more info. Im facing a problem that when i create a new dynamic div with those inputs, they all have the same id, which wont allow me to print each one individually. I have this function that prints out the results :
<form id="form" action="#">
<script>
$("#form").submit(function(event) {
event.preventDefault();
$("#template").val()...
</form>
Shortly : I need a way to make a button, that adds a new div with unique id.Inside there will be label inputs, the label will print out on submit.
Hope this is clear enough :)