Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- > <a class="coupon_click text-no-decoration" href="javascript:void(0);" id="coupon_id_<?php echo $couponBanner->getId(); ?>">
- jQuery(document).ready(function() {
- jQuery('.coupon_click').click(function () {
- console.log('here');
- jQuery.ajax({
- type: 'POST',
- url: '<?php echo url_for('@blog_couponClicked') ?>',
- data: {videoId: <?php echo $video_id ?>, couponId: <?php echo $couponBanner->getId(); ?>},
- success: function (res) {
- if (res) {
- window.location.href = res;
- }
Add Comment
Please, Sign In to add comment