It is necessary to make a conclusion of several selets for further calculation of their values. Problem: displays several times the value of the first select. The answer is preferably in pure javascript.
function calc() { document.getElementById('MB'); var select = document.querySelector('select'); console.log(select.value); document.getElementById('C'); var select = document.querySelector('select'); console.log(select.value); } <select name="P" id="C"> <option value="4">4</option> <option value="5">5</option> <option value="6">6</option> </select> <select name="M" id="MB"> <option value="1">1</option> <option value="2">2</option> <option value="3">3</option> </select> <button type="button" name="button" id="btn" onclick=calc()>BUTTON</button>