title: Date input never null
body: <p>I have this code </p>
  
  <pre><code>$("#inputId").keyup(function(){
      alert($("#inputId").val());
  });
  </code></pre>
  
  <p>I know this is fairly basic(I'm not exactly sure what to google), but I'd like to know why that alert is always a null string. </p>
  
  <p>EDIT-</p>
  
  <p>For some reason, this wasn't included. </p>
  
  <p>What I meant was when I type in the field, the alert never shows anything- if this was imprecise, apologies, I meant the alert shows up, but it always shows a null string(so it should show what's in the date field after a key has lifted, but does not) . That's still happening with the fixed html below. </p>
  
  <p>EDIT (follow up question)-</p>
  
  <p>Cool, so I accepted one of the answers below. I'd like to make it so that regardless of what I type, the value comes up in the alert (not just when the entry is in the date format). How do I achieve this? </p>
  
  <p>HTML CODE-</p>
  
  <pre><code>&lt;div id = "container"&gt;
          &lt;input type = "date" id = "inputId" class = "inputClass"&gt;&lt;br /&gt;&lt;/input&gt;
          &lt;div id="deleteContainer"&gt;&lt;span id="x"&gt;x&lt;/span&gt;&lt;/div&gt;
  &lt;/div&gt;
  </code></pre>