I have several selects like this:
<select id="slctDat1" name="slctDat1" class="form-select">
<option value="1">Text1</option>
</select>
<select id="slctDat2" name="slctDat2" class="form-select">
<option value="1">Text1</option>
</select>
I know how to select them all with
$('select[name="slctDat[]"]')
What I need the program to do is to get the selected value of the select ‘onchange’ and disabled that value on all of them so it would look something like this:
<select id="slctDat1" name="slctDat1" class="form-select">
<option value="1" selected disabled>Text1</option>
</select>
<select id="slctDat2" name="slctDat2" class="form-select">
<option value="1" disabled>Text1</option>
</select>