title: jQuery - parseInt() always returns NaN
body: <p>I created a little function which adds a row in a table. This works fine. But now I have a problem with the <code>parseInt()</code> part.</p>
  
  <p>The first row of the table contains an <code>ID</code>, which brings me to the if-clause. So good, so fine.
  But in the second run it alerts the <code>1</code> but uses this as a string and response with <code>NaN</code>.</p>
  
  <p>So, where is my problem?</p>
  
  <pre><code>function AddFlas(){
      if($(".Flasvalues").is(":hidden")){
          $(".Flasvalues").slideToggle(300);
      }
  
      var par = $("#Flastable tr:last");
      var tdt = par.children("td:nth-child(1)").text(); 
      tdt = parseInt(tdt,10);
      alert(tdt); // First run: ID, Second: 1, Third: 1
      if (tdt != "NaN"){
          alert("is NaN");
          tdt = 0;
      }
      tdt++;
      alert(tdt);
      $("#Flastable tbody").append(
          "&lt;tr&gt;"+
          "&lt;td&gt;"+tdt+"&lt;/td&gt;"+
          "&lt;td&gt;&lt;input name='Flas' type='text'&gt;&lt;/td&gt;"+
          "&lt;td&gt;&lt;input name='Flaskgm' type='number' min='0' step='any'&gt;&lt;/td&gt;"+
          "&lt;td align='center'&gt;&lt;img src='styles/save.png' class='btnSaveFlas'&gt;&lt;img src='styles/trash.png' class='btnDeleteFlas'&gt;&lt;/td&gt;"+
          "&lt;/tr&gt;");
  
      addPointer();
      $(".btnSaveFlas").bind("click", SaveFlas);      
      $(".btnDeleteFlas").bind("click", DeleteFlas);              
  }
  </code></pre>