returning error in javascript
<p>I have variable deleteboxvalue</p>

<pre><code>var deleteboxvalue = "111111111111111";
if(deleteboxvalue.indexOf('0') &gt;= 0) {
    alert("You can't delete all Contact Number.");
return false;
} 
else { 
    alert("All Zeros are not selected."); return true;
}
</code></pre>

<p>I want to check if 0 is not exist in this I want to return false and alert as "You can't delete all Contact Number." but in both cases if 0 exist in variable in that case also its returning false and giving me alert as "You can't delete all Contact Number."</p>
