title: input type date, jQuery val() returns element tag and not value
body: <p>I have a simple input tag:</p>
  
  <pre><code>&lt;input type="date" class="basic_txt" name="date_birth" id="npdl_dBirth" value=""/&gt;
  </code></pre>
  
  <p>And I need to assign the value of this input to a variable:</p>
  
  <pre><code>ndpl_dBirth = $('#npdl_dBirth').val();
  </code></pre>
  
  <p>For some reason this is returning whole tag in a console when I try to print the variable out:</p>
  
  <pre><code>console.log(npdl_dBirth);
  </code></pre>
  
  <p>is returning this:</p>
  
  <pre><code>&lt;input type="date" name="date_birth" id="r_date_birth" value&gt;
  </code></pre>
  
  <p>I must be missing something really obvious, but can't find out what. Anyone any ideas?
  Thx in advance.</p>
  
  <p>Thank you for your help, just found my mistake, simply misspelled the variable. Thx anyway</p>