如何基于selected.if用户选择月份和年份生成日期,然后点击下面显示的“生成”天数,如果选择当前月份(7月)和年份(2014年),则仅显示当前天数。今天是8.谢谢你
<select id="month" name="month" class="select">
<option value="01">January</option>
<option value="02">February</option>
<option value="03">March</option>
<option value="04">April</option>
<option value="05">May</option>
<option value="06">Jun</option>
<option value="07">July</option>
<option value="08">August</option>
<select id="year" name="year" class="select">
<option value="2011">2011</option>
<option value="2012">2012</option>
<option value="2013">2013</option>
<option value="2014">2014</option>
</select>
<button type="button" id="generate">Generate</button>
<div></div>
<table id="test" class="test">
<tr>
<th>Day</th>
<th>Value</th>
</tr>
<tbody>
<td>1</td>
<td><input type="text"/></td>
</tbody>