title: what is the alternate function for indexOf for string in IE8?
body: <p>I have used <strong>indexOf</strong> to check whether i have particular text is present in a sentence or not like the following</p>
  
  <pre><code>var temp = "";
  temp="data not available";
  if(temp.indexOf("datas") == 0){
      alert("True");
  }
  else{
      alert("false");
  }
  </code></pre>
  
  <p>The problem i was facing is <strong>indexOf</strong> is not supported in <strong>Internet Explorer 8</strong>. How to perform this operation in IE8 too? Is there any <strong>default alternate functions</strong> available in jquery? </p>
  
  <p>I tried <strong>inArray</strong> but it supports only array.</p>
  
  <p><a href="http://jsfiddle.net/pandiyancool/nC9tS/" rel="noreferrer">fiddle</a></p>