title: If/else else if in Jquery for a condition
body: <p>I am having a set of text fields where i am doing validation 
  Say I am Having a field called "seats" this can accept 
  value less than "99999".Meaning I should not able to enter the 
  "99999" any thing less than that is ok. For that I wrote below if  and else if .
  please tell me whether I am doing any thing wrong. I am confused a lot from morning 
  whether it should be less than or greater than </p>
  
  <pre><code>if ($("#seats").val() != '') {
      setflag = false;
      alert("Not a valid character")
  }
  else if($("#seats").val() &lt; 99999) {
      alert("Not a valid Number");
  } else {
      setflag = true;
  }
  </code></pre>