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:
Not with plain HTML I'm afraid.
You could use some jQuery to do this though:
$(function(){ var $select = $(".1-100"); for (i=1;i<=100;i++){ $select.append($('<option></option>').val(i).html(i)) } });
-- SEE DEMO --
You can download jQuery here