Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save gunaevart/f155e50f3b0d7d03c370cf43e3afbecf to your computer and use it in GitHub Desktop.
Save gunaevart/f155e50f3b0d7d03c370cf43e3afbecf to your computer and use it in GitHub Desktop.
//JavaScript
function god(){
document.write('<option value="0">Год рожднния</option>');
var god = 1980;
while(god <= 2016){
var god1 = god++;
document.write('<option value="0">'+ god1 +'</option>');
}
}
//HTML
<select name="" id="god">
<script type="text/javascript">god();</script>
</select>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment