내 애플리케이션에서는 날짜 선택 도구가 클릭시 캘린더 본문을 표시하고 오늘 날짜가 현재 날짜와 미래 날짜가 비활성화되도록 선택해야합니다. jquery에서 새로운 기능으로 인해 나를 괴롭혔습니다. 한 달. 도와주세요. 나는 datepicker를 표시 할 수 있고 2030 개까지의 날짜를 선택할 수 있지만 현재 날짜 또는 현재 날짜까지만 활성화되도록 캘린더가 필요합니다. 사전에 감사합니다. jquery datepicker에서 미래의 날짜를 사용 중지 할 수 없습니다.
내 달력은
<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로 더 좋습니다. 유일한 문제는 지금 나는 올해를 바꿀 수 없으며 나는 현재 년에 몇 달을 전환 할 수 있습니다. 표시되는 datepicker에 년을 포함시키고 테두리를 몇 개 넣을 수 있는지 보여주십시오. – mykey