title: Loop through years in a dropdown
body: <p>I would like to display the current year and 10 years before that year.</p>
  
  <p>Is it any way to do that through JavaScript or jQuery?</p>
  
  <p>Currently, I am manually inputting values.</p>
  
  <p><strong>HTML:</strong></p>
  
  <pre><code>&lt;span&gt;Year:&lt;/span&gt;
  &lt;select name="year"&gt;
      &lt;option value="2014"&gt;2014&lt;/option&gt;
      &lt;option value="2013"&gt;2013&lt;/option&gt;
      And so on....
  &lt;/select&gt;
  </code></pre>
  
  <p>I know how to get the current year in JavaScript</p>
  
  <p>Here's what I have currently</p>
  
  <pre><code>var d = new Date();
  var y = d.getFullYear();
  </code></pre>