Not transmit a select value with method post. How to fix?

There is code:

<form method="POST" id="select">
 <select name="day">
 <option disabled>Day</option>
 {{#each day}}
<option>{{this}}</option>
{{/each}}
</select>
 <select name="month">
 <option disabled>Month</option>
 {{#each month}}
 <option value="{{this}}">{{this}}</option>
{{/each}}
</select>
 <select name="year">
 <option disabled>Year</option>
 {{#each year}}
 <option value="{{this}}">{{this}}</option>
{{/each}}
</select>
</form>
<button id="reg" form="select">Register</button>


If you try to pass these values to the server, an error occurs:

TypeError: Cannot read property '3' of undefined

Help, please. What is the error?
March 19th 20 at 09:08
1 answer
March 19th 20 at 09:10
Solution
The answer is found. It was only necessary to set option value selected.

Find more questions by tags HTML