title: Setting the value of HTML5 input type=week thru jquery
body: <p>How to set the default value of HTML5's <strong>input type="week"</strong> in Javascript/Jquery? I'm using moment.js to make things easier.</p>
  
  <p><strong>HTML</strong></p>
  
  <pre><code>&lt;input type="week" id="weekpicker" /&gt;
  </code></pre>
  
  <p><strong>Javascript</strong></p>
  
  <pre><code>$('#weekpicker').val(moment().format('YYYY-MM-DD'));
  </code></pre>
  
  <p>The code above doesn't work.</p>