I want to mark an option as selected if it has a particular value. I have got as far as
const clcb = document.getElementById("cashbook"); clcb.getElementsByTagName("option").selected = "selected";
which sets the 2nd option to selected, but what I want is to set the option whose
value is 2 to selected.