jQuery or JavaScript equivalent of PHP strpos function to find string on a page
<p>Is there an equivalent function in JavaScript or jQuery similar to <code>strpos</code> in PHP?</p>

<p>I want to locate a string inside an element on a page. The string I'm looking for is: </p>

<pre><code>td class="SeparateColumn"
</code></pre>

<p>I would like something where I can run it like this to find:</p>

<pre><code>if $("anystring")
  then do it
</code></pre>
