Filling up one dropdown with same value of the other
Solution 1:
Since the question mentions... ...the other dropdown also automatically chooses the same value and this works both ways...
Try the following, ..
const leadStatusList = document.getElementById('leadstatus');
const leadStatus2List = document.getElementById('leadstatus2');
const setDropdownValue = (event) => {
leadStatusList.value = event.target.value;
leadStatus2List.value = event.target.value;
}
leadStatusList.onchange = setDropdownValue;
leadStatus2List.onchange = setDropdownValue;