title: jQuery: contains() works in Firefox but not Chrome/Safari
body: <p>I've got an ajax function that gets some values based on the selected value in a dropdown. I'm trying to enable/disable some fields based on a substring. I found 'contains' to work in firefox, but testing in chrome and safari tells me that the object 'has no method contains'</p>
  
  <pre><code>if ($d.attr("embed").contains('$var_2$')) { 
      //do something
  } else {
      // do something else
  }
  </code></pre>
  
  <p>Is there an alternative to contains that will work in all browsers?</p>