我正在尝试实现闰年下拉 DOB 选择器。
所以我按这个顺序有三个选择框:
<select id='selectYear' >
//php to populate this list
</select>
<select id='selectMonth'>
//php to populate this list
</select>
<select id='selectDate' >
//php to populate this list
</select>
我想要做的甚至是在月份 DDL 中添加一个 onChange,在该 DDL 中它获取选定的值以及 selectYear DDL 的选定值,这样我就可以填充 selectDate DDL。
如何获取 selectYear DDL 的值,以便将其作为参数发送?