我的應用程序要求日期選擇器應該顯示點擊日曆日曆,選擇日期今天的日期活躍和未來的日期停用...我是新的jQuery中,它已經打擾我一個月。請協助。我能夠顯示日期選擇器並選擇2030年前的任何日期,但是我需要日曆日曆或當前日期。 在此先感謝。無法禁用jQuery日期選擇器中的未來日期
我的壓延機來顯示..
<table id="calenderTable" class="">
<tbody id="calenderTableHead">
<tr>
<td colspan="4" align="center">
<select onChange="showCalenderBody(createCalender(document.getElementById('selectYear').value,
this.selectedIndex, false));" id="selectMonth">
<option value="0">Jan</option>
<option value="1">Feb</option>
<option value="2">Mar</option>
<option value="3">Apr</option>
<option value="4">May</option>
<option value="5">Jun</option>
<option value="6">Jul</option>
<option value="7">Aug</option>
<option value="8">Sep</option>
<option value="9">Oct</option>
<option value="10">Nov</option>
<option value="11">Dec</option>
</select>
</td>
<td colspan="2" align="center">
<select onChange="showCalenderBody(createCalender(this.value,
document.getElementById('selectMonth').selectedIndex, false));" id="selectYear">
</select>
</td>
<td align="center">
<a href="#" onClick="closeCalender();"><font color="#003333" size="+1">X</font></a>
</td>
</tr>
</tbody>
<tbody id="calenderTableDays">
<tr style="">
<td>Sun</td><td>Mon</td><td>Tue</td><td>Wed</td><td>Thu</td><td>Fri</td><td>Sat</td>
</tr>
</tbody>
<tbody id="calender"></tbody>
</table>
日期字段如下:
<tr>
<td>effected date</td>
<td>
<input type="text" name="eff_date" class="required" id="eff_date"><a href="#" onClick="setYears(1947, 2030);
showCalender(this, 'eff_date');" class="" id="calender">
<img src="Calender/calender.png"></a>
</td>
</tr>
感謝它正在工作,我使用日曆,但現在用jquery datepicker更好。唯一的問題是現在我不能改變這一年,我只能在當年轉換幾個月。可以請說明我如何在顯示的日期選擇器中包含這些年份,並放置一些邊框。 – mykey 2012-04-12 12:34:25