document.getElementById('images').innerHTML +='<input name="img" type="file" >'
var file = document.createElement('input'); file.name = 'img'; file.type = 'file'; document.getElementById('images').appendChild(file);