I calcualte a price using jquery:
$('.label_1').click(function(){
var total = 0;
$('.option_1:checked').each(function(){
total += parseInt($(this).val());
});
$('#total').html('€ ' + total);
});
The price gets displayed in a DIV:
<div id="total"></div>
Now I need to pass the result to an HTML form field to submit and work with it.
Please any tipps how this could be done?
Thank you
Neil
You should set the val() of the input field to the total.