1jQuery(function(){ 2 3jQuery('#eshop_count').change(function(){ 4 var count = jQuery('#eshop_count option:selected').val(); 5 var usd = (jQuery('#eshop_price_usd').data('unitprice') * count).toFixed(2); 6 jQuery('#eshop_price_usd').text(usd); 7 var eur = (jQuery('#eshop_price_eur').data('unitprice') * count).toFixed(2); 8 jQuery('#eshop_price_eur').text(eur); 9 var btc = (jQuery('#eshop_price_btc').data('unitprice') * count).toFixed(3); 10 jQuery('#eshop_price_btc').text(btc); 11 jQuery('#eshop_total').val(btc); 12}); 13 14}); 15