title: How to use IndexOf in JQuery
body: <pre><code>if($('#this').val().indexOf('4289')){
      Do something
  else
      Do something. 
  </code></pre>
  
  <p>This works only with that <code>4289</code>,<br>
  When I try to add other numbers to be indexed next to it using 'or', it doesn't work. How should I put other number. E.g </p>
  
  <pre><code>IndexOf('4289||78843') 
  </code></pre>
  
  <p>I want this to check this numbers and if the number in the input field is not one of this, to echo error. </p>
  
  <p>Here's more which happens to die when one revisits the field. </p>
  
  <pre><code>$('#Zip').blur(function(){
          if (($(this).val().indexOf('0860') &gt; -1)||($(this).val().indexOf('0850') &gt; -1)){
          $('#Status_Zip').html("No way.")
          $(this).alterClass('*_*', 'Success')
          return false;
          }else{$('#Status_Code').hide()
          $(this).alterClass('*_*', 'Error')
          $(this).css('border-color', '#F00').css('background-color', '#FFC').effect("pulsate",{times:4},2)
              return true;
          }
      })
  </code></pre>