title: JQuery get current array index position
body: <p>I have an array and a div: </p>
  
  <pre><code>var urls = ["google", "yahoo", "facebook"];
  
  &lt;div class="yahoo"&gt;&lt;/div&gt;
  </code></pre>
  
  <p>Is it possible to get the array index of whichever element is loaded as the div's class?</p>
  
  <p>I have tried:</p>
  
  <pre><code>alert(urls.index());
  </code></pre>
  
  <p>and my page breaks.</p>