Código HTML:
Ver original
<div class="col-md-6"> <input type="number" id="numSong" class="form-control"> </div> <br> <div class="container-sm" id="div" style=""> <div class="col"> <input type="text" class="form-control"> </div> <div class="col"> <input type="text" class="form-control"> </div> <div class="col"> <select name="gender" class="form-control"> </select> </div> <div class="col"> <input type="file" class="form-control"> </div> <br> </div>
Código Javascript:
Ver original
function songs() { var number = document.getElementById('numSong').value; var container = document.getElementById('div'); var i; for(i = 1; i <= number; i++) { container.style.display = "block"; } }