title: jQuery get value of input datetime-local
body: <p>I need to get the value from input datetime-local, but the variable is empty, whereas everything is ok with text inputs. Here is code:</p>
  
  <pre><code>&lt;script&gt;
  var datetimeval = $("#datetime").val();
  var textval = $("#text").val();
  &lt;/script&gt;
  &lt;input id='text' type='text' /&gt;
  &lt;input id='datetime' type='datetime-local' /&gt;
  </code></pre>
  
  <p>Could you tell me please, how to fix it?</p>