CodePen

HTML

            
              <select id="select">

</select>
            
          
!
via HTML Inspector

CSS

            
              
            
          
!
? ?
? ?
Must be a valid URL.
+ add another resource
via CSS Lint

JS

            
              var date = new Date().getFullYear();
var length = date + 16;

for(var i = date; i < length; i++){
  //Pure JavaScript
  document.getElementById("select").insertAdjacentHTML("beforeEnd", '<option value=" ' + i + '">' + i + '</option>');
  
  //jQuery
  //$("#select").append('<option value="' + i + '">' + i + '</option>');
}
            
          
!
Must be a valid URL.
+ add another resource
via JS Hint
Loading ..................