Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var orderTotal;
- $(function() {
- $('#order_quantity').click(orderTotal);
- return orderTotal();
- });
- orderTotal = function() {
- var price, quantity, total;
- quantity = $('#order_quantity').val();
- price = $('#ticket-price').data('url');
- total = quantity * price;
- $('.stripe-button').attr('amount', total);
- return alert(total);
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement