Are you first timer at lazacode.org? Why not join us and start exchange your programming knowledge with everyone. Register today!

jQuery - check whether button is clicked or not with .data

0 votes
3 views
added Feb 13 in jQuery by lcjr Sergeant (2,120 points)
if (window.scrollY > 1) {
    HideAppBanner();
} else {
    $(AppClose).click(function() {
        $(this).data('clicked', true);
    });

    if($(AppClose).data('clicked')) {
        HideAppBanner();
    }
    else {
        ShowAppBanner();
    }
}

 

Please log in or register to response this reference.

lazacode.org - Malaysia's programming knowledge sharing platform, where everyone can share their finding as reference to others.
...