/ Published in: JavaScript

I hate manually entering in tons of numbers and tags for numbers, so I made a loop for it.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
var i = $('#age').size(); var age = 18; for (i = 0; i < 82; i++) { $('#age').append('<option>' + age + '</option>'); age++ }
Comments
