Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save shimakyohsuke/a82a3508fd2148f4ee8a to your computer and use it in GitHub Desktop.
Save shimakyohsuke/a82a3508fd2148f4ee8a to your computer and use it in GitHub Desktop.
select(name="birthday_year", required)
option(value='', selected='selected') -
- var n = 1990
while n <= 2016
option(value=n + '年')
=n++
| 年
select(name="birthday_month", required)
option(value='', selected='selected') -
- var n = 1
while n <= 12
option(value=n + '月')
=n++
| 月
select(name="birthday_day", required)
option(value='', selected='selected') -
- var n = 1
while n <= 31
option(value=n + '日')
=n++
| 日
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment