Here is a fiddle for referrence https://jsfiddle.net/mc6jqtzr/
I need to be able to populate the innerHTML of #date with some content only IF at least one option in the select list above DOES NOT have a style applied (in this case the display property).
e.g. the last option does not have a style applied, so the #date should get populated.
var date = $("#date");
// Show the date only if there are open spots
if ($('.js-check-in-times option:visible').length === 0) {
date.html('');
} else {
date.html('Working now.');
}
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<select class="check-in__select js-check-in-times" id="time" name="AptTime" required="" aria-required="true" aria-label="times filter">
<option value="2021-07-28T08:15:00.000-04:00" data-group="2021-07-28" style="display: none;">08:15 AM</option>
<option value="2021-07-28T08:30:00.000-04:00" data-group="2021-07-28" style="display: none;">08:30 AM</option>
<option value="2021-07-28T08:45:00.000-04:00" data-group="2021-07-28" style="">08:45 AM</option>
</select>
<div id="date" style="font-size: 24px; color: red; font-family: sans-serif;"></div>