1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
| jQuery('span[report] :radio.bitrimestriel').change(function(){
var keywords = jQuery('span[keyword] :text.keywords').val() *
jQuery('span[keyword]
:text.keywords').parents("span[keyword]:first").attr('keyword');
var RealPrice = (375) + parseFloat(keywords)
var pourcent = (RealPrice * 10) / 100
jQuery(':radio.bitrimestriel').click(function(){
if(jQuery(':radio.bitrimestriel').val() == 1){
var Total = (2 * RealPrice) - pourcent
}else{
var Total = 1 * RealPrice
}
return Total
})
jQuery('~ span:first',this).text(
Total
);
}); |
Partager