please i have a problem,i create new input field when a button is click,but i want each of the new create field to have a unique id,so i can use it for calculation in javascript.
Code:
function create(){
var newinput = document.createElement('input');
newinput.placeholder = "test1";
newinput.id = 'test1';
document.getElementById("mytest").appendChild(newinput);
}
Comment