我试图实施闰年下拉式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>
我想要做的就是添加一个onchange甚至一个月DDL那里得到所选择的价值,以及作为selectYear的选定值DDL,然后我可以填充selectDate DDL。
如何获取selectYear DDL的值,以便我可以将其作为参数发送?
你使用jQuery或类似的JavaScript库? – RedFilter
我对jQuery并不熟悉。我有jquery-1.3.1.min.js,虽然我需要一个脚本,但我没有自己编写脚本。 – hermann