var loadFile1 = function(event) { var output = document.getElementById('output1'); output.src = URL.createObjectURL(event.target.files[0]); output.onload = function() { URL.revokeObjectURL(output.src) } } function addOnClick() { var first = document.getElementById('first').value; var output1 = document.getElementById('img').files[0].name; var second = document.getElementById('second').value; var third = document.getElementById('third').value; var forth = document.getElementById('forth').value; if (first && output1 && second && third && forth) { let id = showtable.length + 1; showtable.push({ first: first, output1: output1, second: second, third: third, forth: forth, id: id }) displayTableData(); clearItems(); } }
<input type="file">
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)