jQuery and dynamic donation amount
-
Hey! Thanks for all your previous help here.
I’m using some custom jquery to set the donation amount externally (e.g. using GET and a custom link).
This is my code, I have looked at a similar post in the past but the javascript didn’t seem to work. What could be wrong? Everything shows up fine but I get “Donation amount £10.00 is invalid”.
<script> jQuery( document ).ready(function() { jQuery('#give-amount').val(10); jQuery('#give-amount').attr('data-amount',10); jQuery('.give-final-total-amount').attr('data-total',10); jQuery('.give-final-total-amount').html('£10.00'); }); </script>All the best!
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘jQuery and dynamic donation amount’ is closed to new replies.