Надеюсь, что эта помощь
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
<script src="https://code.jquery.com/jquery-3.4.0.min.js"></script>
<table>
<tr>
<td>
<input type="button" class="checkin" value="Check-in" id="checkin_datetime" name="checkin_datetime">
</td>
<td class="nowrap">
<input class="checkout" type="button" value="Check-out" id="checkout_datetime" name="checkout_datetime">
</td>
<td class="nowrap">
<input class="absent Y" type="button" value="Mark Absent" id="absent_flag" name="absent_flag">
</td>
</tr>
</table>
<script type="text/javascript">
$(document).ready(function(){
$(document).on('click','.absent',function(e) {
$(this).closest('td').prev('td').find('.checkout').prop('disabled', true);
});
});
</script>
</body>
</html>