title: Get value of html elements form a jquery $.post() data
body: <p>I have some pages that i acces by jquery $.post like this:</p>
  
  <pre><code>$.post(url, {name: name}, function(data)
  {
      var htmldata = $(data);
      if($('#ok', htmldata).val() == "1")
      {
          //some things carried out
      }
  });
  </code></pre>
  
  <p><code>$('#ok', htmldata).val()</code> is allways <code>undefined</code> so where is the problem?</p>
  
  <p><strong>UPDATE:</strong> <code>htmldata = &lt;input id=\"ok\" type=\"hidden\" value=\"1\" /&gt;</code> and another 2-3 hidden input.</p>