check variable if char exist or not
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/4444477/how-to-tell-if-a-string-contains-a-certain-character-in-javascript">How to tell if a string contains a certain character in javascript?</a>  </p>
</blockquote>



<p>Suppose I have a string in variable ex. <code>var name="Stackoverflow"</code>. I want to check in this string if 'z' is exist or not? How can I check this? I don't want to find index or anything else I just want to check if value <code>z</code> is exist or not. </p>

<p>Suppose with code. I have a variable.</p>

<pre><code>var deleteboxvalue = "1111111111111111111111";
if(!deleteboxvalue.indexOf('z') &gt;= 0){
alert("0 not exist");
return false;
}
</code></pre>
