My friend shared a JavaScript code with me where he only bolded the time but not the text next to it. I am looking to bold both the time and the text next to it, as well as multiple tables if possible.
var hour = new Date().getHours() + 1;
$('table td:nth-child(1)').each(function (index, td) {
if ($(td).text().indexOf(hour) == 0) {
$(td).addClass('highlight-time');
} else {
$(td).removeClass('highlight-time');
}
});
.highlight-time {
font-weight: bold;
color: blue;
}