Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* Prevents people from inserting voucher code without submitting it */
- $(document).ready(function () {
- $("a.btn--checkout-proceed").click(function (e) {
- if ($("input[name=sVoucher]") && $("input[name=sVoucher]").val() != '') {
- e.preventDefault();
- $("form.add-voucher--form").submit();
- }
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement