Select every day in jQuery full calendar ver 2.x

The following code is part of the code generated by the fullcalendrar jquery ver 2. It has changed slightly from version 1.x in the classes it uses.

<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>

      

I want to use jquery to select every second td (day slots) following the next path.

.$("fc-slats > table tbody tr").children.eq(1)

      

Is the above jquery correct?

+3


source to share


1 answer


Your jquery is wrong. You can use the following:



$(".fc-slats > table tbody tr").find("td:eq(1)")

      

+5


source







All Articles