I will show you in Jade (HTML preprocessor and of course, it is possible in HTML as well)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
select | |
option(value='0', selected="1", disabled="1") Option_by_default | |
script(type='text/javascript'). | |
var number_top = 100; | |
for(var i = 0; i < number_top; i++) { | |
document.write('<option value="'+ i +'">'+ i +'</option>'); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
select | |
option(value='0', selected="1", disabled="1") Option_by_default | |
option(value='1') Option 1 | |
option(value='2') Option 2 | |
option(value='3') Option 3 | |
option(value='4') Option 4 | |
option(value='5') Option 5 | |
// and so on... |
No hay comentarios:
Publicar un comentario