const btn = document.querySelector('.btn');
btn.addEventListener('click', () => {
document.getElementById('div1').innerHTML =
'<input type="text" name="text1" class="form-control w-50"/>';
});
document.getElementById('div1').innerHTML =
'<input type="text" name="text1" class="form-control w-50"/>';
document.getElementById('div1').innerHTML +=
'<input type="text" name="text1" class="form-control w-50"/>';