Template:2011FR/Form-section-radiobuttons-4: Difference between revisions
Content deleted Content added
No edit summary |
No edit summary |
||
Line 114:
}
}
if ( form.
var otherAmount = form.
otherAmount = otherAmount.replace(/[,.](\d)$/, '\:$10');
otherAmount = otherAmount.replace(/[,.](\d)(\d)$/, '\:$1$2');
otherAmount = otherAmount.replace(/[\$,.]/g, '');
otherAmount = otherAmount.replace(/:/, '.');
form.input_amount_other_box.value = otherAmount;
form.amountGiven.value = otherAmount;
amount = otherAmount;
|