2
How do I ignore reading the first value of an array? I don’t want to remove it, I just want it to be displayed, it doesn’t appear the same:
I’ve done it before:
document.querySelectorAll('.form .form-control').forEach(function (a) {
console.log(a.value);
});
<form class="form">
<input type="hidden" class="form-control" value="Não é pra aparecer">
<input type="text" class="form-control" value="Teste1">
<input type="text" class="form-control" value="Teste2">
<input type="text" class="form-control" value="Teste3">
</form>
The first input as you can see, is just an input of type Hidden and I don’t want its value to appear, but I also don’t want it to be removed... Someone give me a light?
Thank you!
Is there a need to use the form-control class in this input? Because if you don’t use it, it won’t enter foreach
– Nathan Schroeder
Puts, Nathan, KKKKKKKK is sometimes every stupid thing I do, thanks man!
– Lucas de Carvalho
In programming is normal.
– Nathan Schroeder
If you want to put it as an answer, then I’ll mark how you accept!
– Lucas de Carvalho
Okay, I put a little bit better explained to whoever needs it.
– Nathan Schroeder