title: jQuery If value is NaN
body: <p>I am having some trouble with an if statement. I want to set num to 0 of NaN:</p>
  
  <pre><code>$('input').keyup(function() {
  
  var tal = $(this).val();
  var num = $(this).data('boks');
  if(isNaN(tal)) {
  var tal = 0;
  }
  });
  </code></pre>