I have an HTML form, normal input fields, submit button ... Through a JS function, I add additional input fields to a DIV (with innerHTML).
var div = document.getElementById('produtos-adicionados');
div.innerHTML = '<input type='text' class='form-control' name='item' id='item' required='' />';
When submitting the form, I can not access this new item item input, obviously.
How would I be able to submit the form and get the input value in php? In addition, when sending the form, you can also get the values of the other inputs, which are in the form but are not in innerHTML.