0
I would like to create a input
that receives a value informed by the user and that when clicking on a button he executed a function that checks if the value entered exists in my array and if there is what index is contained.
var vetor = [1, 2, 3];<br>
var elemento = document.getElementById("verifica").value;
<.input type='text' id="verifica">
How to search for a particular object within an array?
– NoobSaibot
What are these
<br>
lost in the middle of javascript ? Try to better formulate your question, if possible with more concrete examples.– Isac