3
다음 코드는 fullcalendrar jquery 플러그인 버전 2에서 생성 된 코드 조각입니다. 사용하는 클래스에서 ver 1.x 이후로 조금 변경되었습니다.jquery 풀 캘린더 버전 2.x에서 매일 슬롯을 선택하십시오.
<div class="fc-slats">
<table>
<tbody>
<tr>
<td class="fc-axis fc-time fc-widget-content" style="width: 37px;"><span>07:00</span></td>
<td class="fc-widget-content"></td>
</tr>
<tr class="fc-minor">
<td class="fc-axis fc-time fc-widget-content" style="width: 37px;"></td>
<td class="fc-widget-content"></td>
</tr>
<tr class="fc-minor">
<td class="fc-axis fc-time fc-widget-content" style="width: 37px;"></td
<td class="fc-widget-content"></td>
</tr>
<tr class="fc-minor">
<td class="fc-axis fc-time fc-widget-content" style="width: 37px;"></td>
<td class="fc-widget-content"></td>
</tr>
<tr>
<td class="fc-axis fc-time fc-widget-content" style="width: 37px;"><span>08:00</span></td>
<td class="fc-widget-content"></td>
</tr>
<tr class="fc-minor">
<td class="fc-axis fc-time fc-widget-content" style="width: 37px;"></td>
<td class="fc-widget-content"></td>
</tr> <!--etc-->
<tbody>
<table>
</div>
나는 추적 경로
.$("fc-slats > table tbody tr").children.eq(1)
위 JQuery와 맞을 따라있는 모든 초 TD (일 슬롯)를 선택 jQuery를 사용하려면?
내가 슬롯 = $ (".fc-slats> table tbody tr td : eq (1)") 일 때 길이가 1을 반환합니다. 많은 슬롯이 있기 때문에 더 많은 것을 돌려 주어야한다. (내 예제에서 더 많은 것) – Apostolos
고마워. 대답을 편집하고 나에게 맞게 선택하도록해야한다. – Apostolos