Quantcast
Channel: iT邦幫忙
Viewing all articles
Browse latest Browse all 15645

javascript的selected如何自行判別為當前年,月呢?

$
0
0
<select name="select10">
<option value=""></option>
<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>
如何在表單開啟時,select10的selected為當前月份呢?

Viewing all articles
Browse latest Browse all 15645

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>