Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script type="text/javascript">
- jQuery(function() {
- function setDonationTotal(totalAsString) {
- var totalAmt = Number(totalAsString.replace(/[^\d\.]/g, ''));
- if(totalAmt) {
- jQuery('#input_34_51').val(totalAmt);
- } else {
- jQuery('#input_34_51').val(0);
- }
- }
- jQuery("#ginput_base_price_34_41").bind("change", function() {
- setDonationTotal(jQuery(this).val());
- });
- jQuery("#ginput_base_price_34_40").bind("change", function() {
- setDonationTotal(jQuery(this).val());
- });
- setTimeout(function() {
- setDonationTotal("$30.90");
- }, 1000);
- });
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement