When I run select something from the drop-down ('room_type_id' and 'bed_type_id') it outputs a "NaN" (Not a Number). If I first select something from multiple select input ('bed_type_id') then the output results are: 52000, 53000, 53500 although the real values are 1000, 2000, 2500 as you can see in the HTML form in the demo above.
I suspect parseInt has something to do with it. parseFloat didn't work either. Any suggestions?
function jungi() {
var room_type_id=document.getElementById('room_type_id').value;
var meal_type_id=document.getElementById('meal_type_id').value;
var bed_type_id=document.getElementById('bed_type_id').value;
document.getElementById('total_amount').value = parseInt(room_type_id) + parseInt(meal_type_id) + parseInt(bed_type_id);
}