Trying to get the index of a value in an array in JavaScript : <p>I have three arrays, one of which is in an autocomplete dropdown list.  As an item is selected, I would like find its index in the array so that I can use said index in the other two arrays.</p>

<p>Is there a simple solution where I can feed an array function a value (i.e. Texas) and get its index number?</p>

<p>Thanks </p>
