Get Element ID by String it Contains using Plain Javascript
<p>How can I get an elemnts ID based on the string it contains?</p>

<pre><code>&lt;span id="th67"&gt;This the string I need to match&lt;/span&gt;
</code></pre>

<p>I can't make use of JQuery or any other Javascript library to do this.</p>

<p>I need to do this for a selenium test.</p>

<p>I didn't realise how useless I am in JS without my libraries!</p>

<p>Thanks all for any help.</p>
