0
I’m creating fields dynamically like this:
$(document).ready(function(){
$('#quantidade').on('change', function(){
var quantidade = $('#quantidade').val(),
campos = $('#campos');
campos.html(''); //aqui eu fiz limpar a div
for (x = 0; x < quantidade; x++) {
campos.append('<input type="text" id="campo-'+x+'" />');
}
});
});
However, now I do not know how to insert these fields in the bank, as they will vary. I accept suggestions!
Thank you, it worked properly.
– R.Gasparin