title: Jquery Unfocus field if value equals
body: <p>What I am trying to achieve in the below code is when "0" has been entered into the input field it gets unfocused and other stuff triggers.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>$(".val-0").keyup(function() {
    if ($(this).val() === 0) {
      $(this).blur();
      // Do other Stuffss
    }
  
  });</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"&gt;&lt;/script&gt;
  
  &lt;input class="val-0" type="number"&gt;</code></pre>
  </div>
  </div>
  </p>