<input type="radio" id="alice" name="daysOff" value="alice">
<label for="alice">Alice</label><br>
<input type="radio" id="dave" name="daysOff" value="dave">
<label for="dave">Dave</label><br>
In addition to disabling weekends, I want to disable Tuesdays on the calendar should the radio button above be on Alice and disable Wednesdays should it be on David. What if-statements should I include in the function below?
<script src="https://code.jquery.com/jquery-1.12.4.js"></script>
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
<script>
$( function() {
$( "#datepicker" ).datepicker({
beforeShowDay: $.datepicker.noWeekends
});
} );
</script>
<p>Date: <input type="text" id="datepicker"></p>