如何通过jQuery onchange检查下一个可用的tr标记
var $ last_row_check = $(“。time_add_form_tbody tr:last”)。html();
<tbody class="time_add_form_tbody">
<tr class="time_tr_tbody">
<input type="hidden" name="valid_time_data" class="valid_time_data" value="eyJ0aW1lX2luIjoiMDk6MzA6MDAiLCJ0aW1lX291dCI6IjEyOjMwOjAwIn0">
<td><i class="fa fa-clock-o" aria-hidden="true"></i></td>
<td class="txt_cnter">Time</td>
<td>
<div class="table_timein timeclock intime_0">
<select id="readonly_time" class="time_clickevent form-control clockpicker" placeholder="Please select in-time" name="in_time[]">
<option value="">Select Time</option>
<option value="07:00:00">
7:00 AM
</option>
<option value="07:30:00">
7:30 AM
</option>
<option value="08:00:00">
8:00 AM
</option>
<option value="08:30:00">
8:30 AM
</option>
<option value="09:00:00">
9:00 AM
</option>
<option selected="selected" value="09:30:00">
9:30 AM
</option>
<option value="10:00:00">
10:00 AM
</option>
<option value="10:30:00">
10:30 AM
</option>
<option value="11:00:00">
11:00 AM
</option>
<option value="11:30:00">
11:30 AM
</option>
<option value="12:00:00">
12:00 PM
</option>
<option value="12:30:00">
12:30 PM
</option>
<option value="13:00:00">
1:00 PM
</option>
<option value="13:30:00">
1:30 PM
</option>
<option value="14:00:00">
2:00 PM
</option>
<option value="14:30:00">
2:30 PM
</option>
<option value="15:00:00">
3:00 PM
</option>
<option value="15:30:00">
3:30 PM
</option>
<option value="16:00:00">
4:00 PM
</option>
<option value="16:30:00">
4:30 PM
</option>
<option value="17:00:00">
5:00 PM
</option>
<option value="17:30:00">
5:30 PM
</option>
<option value="18:00:00">
6:00 PM
</option>
<option value="18:30:00">
6:30 PM
</option>
<option value="19:00:00">
7:00 PM
</option>
<option value="19:30:00">
7:30 PM
</option>
<option value="20:00:00">
8:00 PM
</option>
<option value="20:30:00">
8:30 PM
</option>
</select>
<span class="error_span12"></span>
</div>
</td>
<td><i class="fa fa-chain chain_icon123"></i></td>
<td>
<div class="table_timeout timeclock outtime_0">
<select id="readonly_time" class="chnge_timeout time_clickevent form-control clockpicker" name="out_time[]">
<option value="">Select Time</option>
<option value="09:00:00">9:00 AM</option>
<option value="09:30:00">9:30 AM</option>
<option value="10:00:00">10:00 AM</option>
<option value="10:30:00">10:30 AM</option>
<option value="11:00:00">11:00 AM</option>
<option value="11:30:00">11:30 AM</option>
<option value="12:00:00">12:00 PM</option>
<option selected="selected" value="12:30:00">12:30 PM</option>
<option value="13:00:00">1:00 PM</option>
<option value="13:30:00">1:30 PM</option>
<option value="14:00:00">2:00 PM</option>
<option value="14:30:00">2:30 PM</option>
<option value="15:00:00">3:00 PM</option>
<option value="15:30:00">3:30 PM</option>
<option value="16:00:00">4:00 PM</option>
<option value="16:30:00">4:30 PM</option>
<option value="17:00:00">5:00 PM</option>
<option value="17:30:00">5:30 PM</option>
<option value="18:00:00">6:00 PM</option>
<option value="18:30:00">6:30 PM</option>
<option value="19:00:00">7:00 PM</option>
<option value="19:30:00">7:30 PM</option>
<option value="20:00:00">8:00 PM</option>
<option value="20:30:00">8:30 PM</option>
</select>
<span class="error_span12"></span>
</div>
</td>
</tr>
<tr class="time_tr_tbody">
<input type="hidden" class="valid_time_data" name="valid_time_data" value="eyJ0aW1lX2luIjoiMTM6MzA6MDAiLCJ0aW1lX291dCI6IjE3OjMwOjAwIn0">
<td><i class="fa fa-clock-o" aria-hidden="true"></i></td>
<td class="txt_cnter">Time</td>
<td>
<div class="table_timein timeclock intime_0">
<select id="readonly_time" class="time_clickevent form-control clockpicker" placeholder="Please select in-time" name="in_time[]">
<option value="">Select Time</option>
<option value="14:30:00">
2:30 PM
</option>
<option value="15:00:00">
3:00 PM
</option>
<option value="15:30:00">
3:30 PM
</option>
<option value="16:00:00">
4:00 PM
</option>
<option value="16:30:00">
4:30 PM
</option>
<option value="17:00:00">
5:00 PM
</option>
<option value="17:30:00">
5:30 PM
</option>
<option value="18:00:00">
6:00 PM
</option>
<option value="18:30:00">
6:30 PM
</option>
<option value="19:00:00">
7:00 PM
</option>
<option value="19:30:00">
7:30 PM
</option>
<option value="20:00:00">
8:00 PM
</option>
<option value="20:30:00">
8:30 PM
</option>
</select>
<span class="error_span12"></span>
</div>
</td>
<td><i class="fa fa-chain chain_icon123"></i></td>
<td>
<div class="table_timeout timeclock outtime_0">
<select id="readonly_time" class="time_clickevent form-control clockpicker" name="out_time[]">
<option value="">Select Time</option>
<option value="14:30:00">2:30 PM</option>
<option value="15:00:00">3:00 PM</option>
<option value="15:30:00">3:30 PM</option>
<option value="16:00:00">4:00 PM</option>
<option value="16:30:00">4:30 PM</option>
<option value="17:00:00">5:00 PM</option>
<option selected="selected" value="17:30:00">5:30 PM</option>
<option value="18:00:00">6:00 PM</option>
<option value="18:30:00">6:30 PM</option>
<option value="19:00:00">7:00 PM</option>
<option value="19:30:00">7:30 PM</option>
<option value="20:00:00">8:00 PM</option>
<option value="20:30:00">8:30 PM</option>
</select>
<span class="error_span12"></span>
</div>
</td>
</tr>
</tbody>
[在此处输入图片描述] [1]
我只是从选择下拉列表中单击最后一个tr标签,我想知道表中当前tr之后是否还有其他tr标签。如何检查这种情况。