It needs an element with ID, so in WeWeb we put in the ID under HTML attributes “confetti-btn”.
It did not work. We went on to test the same in Webflow and it worked. It was the exact same code and process.
Does someone know how to get the code to work in WeWeb?
You’re calling a jquery method in your script $(), but there is not jquery in WeWeb.
You’re attaching an event click to a button with code but there is no need in WeWeb, you can just add a workflow on click on a button, add a custom js block and call directly the relevant part of your code snippet