うるう年のドロップダウン DOB ピッカーを実装しようとしています。
したがって、この順序で 3 つの選択ボックスがあります。
<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>
私がしたいのは、選択した値と selectYear DDL の選択した値を取得する月の DDL に onChange を追加して、selectDate DDL を設定できるようにすることです。
パラメータとして送信できるように、selectYear DDL の値を取得するにはどうすればよいですか?