Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var currentCoupone = 'IQOSAPR21';
- var input = document.createElement('input');
- document.body.appendChild(input);
- input.setAttribute('value', currentCoupone);
- input.select();
- document.execCommand('copy');
- document.body.removeChild(input);
- window.sessionStorage.setItem('adoric_coupone_code', currentCoupone);
- var couponInput = document.querySelector('.coupon_info input[name="coupon_code"]');
- if (couponInput) {
- couponInput.value = currentCoupone;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement