how to change the dropdown based on the checkbox selection.
function checbocChecked(event) {
let check = document.querySelectorAll('input[type=checkbox]:checked').length;
alert(check)
if (check > 1) {
//here how can i manipulate all the dropdown such that it become MULTIPLE
} else {
//here how can i manipulate all the dropdown such that it become SINGLE
}
}
<table>
<thead>
<tr>
<td>Checbox</td>
<td>Key</td>
<td>Value</td>
</tr>
</thead>
<tbody>
<tr>
<td><input type="checkbox" onclick="checbocChecked(event)"></td>
<td><input type="numeric" value=1></td>
<td>
<select>
<option value="SINGLE">SINGLE</option>
<option value="MULTIPLE">MULTIPLE</option>
</select>
</tr>
<tr>
<td><input type="checkbox" onclick="checbocChecked(event)"></td>
<td><input type="numeric" value=2></td>
<td>
<select>
<option value="SINGLE">SINGLE</option>
<option value="MULTIPLE">MULTIPLE</option>
</select>
</tr>
</tbody>
</table>
<div id="final"></div>
If single check box is selected then all the dropdown in the table should hold SINGLE
as a option value if more than one checkbox is selected then all the dropdown will hold MULTIPLE
as a option value
what i tried is above