Considering both the answers at the time of posting are in Jquery , i'm providing one in JS.
Providing values to each option
I've added values to the selects as they are necessary to get which number is allocated to each select option.
<option value="2">2</option>
Getting the value of the selected option
To get the value of the select button, you can access the button using document.getElementById('sel') and use the .value operator to get the selected option.
document.getElementById('sel').value)
You can find the snippet below.
function order(name, amount) {
alert(name);
alert(amount);
}
<select id="sel">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
</select>
<button class="button" onclick="order('milk',document.getElementById('sel').value)">$1.85</button>