I have been trying to do a form where a question about one's current age is included, and I have decided the easiest way to answer this question is by filling in a drop down list. So my first value in the drop down list shall be 1900 and then it shall increment by one till it reaches 2014. How do I do that?
相关问题
- Views base64 encoded blob in HTML with PHP
- Is there a limit to how many levels you can nest i
- Laravel Option Select - Default Issue
- How to toggle on Order in ReactJS
- void before promise syntax
I wouldn't set a fixed final year, why recode again next year?
Note that it is more effecient to update the DOM once than updaing the DOM for each year added to the list.
HTML
Script
Example
DEMO
a php version?