I was just wondering if there was a simple shortcut to add options to a dropdown menu for the numbers 1 to 100 instead of having to do the following:
Are you using JavaScript or jQuery besides the html? If you are, you can do something like:
HTML:
jQuery:
var select = '';
for (i=1;i<=100;i++){
select += '';
}
$('#some_selector').html(select);
As you can see here.
Another option for compatible browsers instead of select, you can use is HTML5's input type=number
: