jQuery or JavaScript equivalent of PHP strpos function to find string on a page

Viewed 102831

Is there an equivalent function in JavaScript or jQuery similar to strpos in PHP?

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

td class="SeparateColumn"

I would like something where I can run it like this to find:

if $("anystring")
  then do it
2 Answers
Related