title: Check if numbers are in sequence
body: <p>I have a textbox that contains a max length of <code>4</code> and if the user enters the numbers in sequence then needs to throw an error.</p>
  <p><strong>Examples</strong>: Below are a few examples which need to block:</p>
  <p><code>1234</code>, <code>4567</code>, <code>5678</code>, etc</p>
  <p>And it can accept <code>1233</code>, <code>4568</code>, etc</p>
  <p>I'm expecting this condition in Jquery or JavaScript.</p>
  <p>Any help would be appreciated</p>
  <p><strong>Code</strong>: I want to use the code in below format:</p>
  <pre><code>$.validator.addMethod('Pin', function (b) {
      var a = true;    
      a = (/^([0-9] ?){4}$/i).test(b);    
      return a
  }, '');
  </code></pre>
  <p>We can replace the condition which is in bold.</p>