• Hello all,

    I am struggling with this for many days, I don’t know about jqueery and some tutorials seems really complicate to me.
    I would like to put a coupon code under my button.
    So we would have:
    – Click on the button –> It opens the merchant page (new tab) –> Show the coupon (the button disappeared)

    I try to make this below but i don’t how to intregate it with SU and my themes.
    Do you have any idea ?

    <!DOCTYPE html>
    <html>
    <head>
    <script src=”https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js”></script&gt;
    <script>
    $(document).ready(function(){
    $(“p”).hide();

    $(“button”).click(function(){
    $(“p”).show();
    $(“button”).hide();

    });
    });
    </script>
    </head>
    <body>

    <p>This is a paragraph.</p>

    <button>Show</button>

    </body>
    </html>

The topic ‘Button show coupon hide button’ is closed to new replies.