The form makes no sense.
Why would you need 4 <select>s when you only have 3 items in each one? At most, you would need 3 <select>s.
On top of that, what do you do if somebody wants to order SEVEN (7) Chicken Sausages??? You need QUANTITY <select>s or <input>s in addition to the meat selections.
Or is this homework for some class? It feels like that to me, because homework doesn't have to be realistic or work in the real world.
********
By the way, you do *NOT* have to do
Code:
sausage1.options[ sausage1.options.selectedIndex ].value
You only had to do that back in the days of Netscape version 4 (1999 or so). All modern browser allow you do just do
to get the same thing.
Anyway, you have several mistakes in your JavaScript code.
Code:
function addDrops() {
var sausageOne = document.getElementById( 'sausage1');
var sausageTwo = document.getElementById( 'sausage2');
document.getElementById( 'output').value =
parseFloat(sausage1.options[ sausage1.options.selectedIndex ].value)
+ parseFloat(sausage2.options[ sausage2.options.selectedIndex ].value
);
) // you are using right paren instead of right brace!