javascript: Select a class with the right content
<p>i`m working on a Greasmonkey Script, no i want to know how i can test a class for its content.
For example:</p>

<pre><code>&lt;div class="same"&gt;Some content&lt;/div&gt;
&lt;div class="same"&gt;Other content&lt;/div&gt;
&lt;div class="same"&gt;evenmorecontent&lt;/div&gt;
&lt;div class="same"&gt;yesthisisalsocontent&lt;/div&gt;
&lt;div class="same"&gt;youmaynotizedthat&lt;/div&gt;
&lt;div class="same"&gt;thecontentisdifferent&lt;/div&gt;
&lt;div class="same"&gt;the cake is yellow&lt;/div&gt;
</code></pre>

<p>Now i create a array with this classes</p>

<pre><code>var arr = document.getElementsByClassName('same');
</code></pre>

<p>Now i want to get the position of "evenmorecontent" in the Array! How do i do this?</p>
