REMINDER

Please be respectful of all AppDragers! Keep it really civil so that we can make the AppDrag community of builders as embracing, positive and inspiring as possible.

Button in JQuery not working



  • Hi,

    I've integrated in a JQuery a button to be displayed.
    <span class="appdrag-button primary-color appdrag-palette-background-color-dark-primary-color dynamic-sized-element" hover-color="text-color" hover-background-color="light-primary-color" style="color:#feffff;border-radius:25px;font-size:16px;background:linear-gradient(45deg,#b066fe,#63e2ff);padding:15px 25px !important;margin-top:0 !important;margin-bottom:0 !important" fs-d="16" link-local="exercice" link-target="page" local-anchor="&id=' + carouselElem.id + '; &program=' + programParam + '" link-type="current" icon="fas fa-play-circle" padding-desktop-top="15" padding-desktop-bottom="15" padding-desktop-left="25" padding-desktop-right="25" background-gradient="%7B%22type%22%3A%22linear%22%2C%22position%22%3A%7B%22x%22%3A50%2C%22y%22%3A50%2C%22angle%22%3A45%7D%2C%22colors%22%3A%5B%7B%22color%22%3A%22%23B066FE%22%2C%22from%22%3A%22%22%7D%2C%7B%22color%22%3A%22%2363E2FF%22%2C%22from%22%3A%22%22%7D%5D%7D"><i class="fas fa-play-circle left" style="font-size:px"></i><span>Accéder à cet exercice</span></span>

    When I try to clik on it, nothings occur. I've tried another button with no code, it works outside from the script but it's not working in my script.

    Any idea ?
    Here is my project page : https://prod.appdrag.com/Builder/pagebuilder.html?appId=inspiration-fe287c#PAGE_exercice



  • Hi,
    Maybe try to call the function handleLinks after you've built your buttons, to tell AppDrag to bind events on it.

    handleLinks();
    


  • @Wassim said in Button in JQuery not working:

    handleLinks();

    Wassim ... You are Great ! 👍



  • You're welcome 🙏


Log in to reply