我需要在刀片中显示所选选项,并将其设置为一个值,例如我的代码。
@php($month = 0)
<select name="monthOption" id="monthOption">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
<option value="10">10</option>
<option value="11">11</option>
<option value="12">12</option>
</select>
<!-- I need to get option value on select, and set it in the value $month ? -->
{{$month}}