We have serveral buttons on our website with unique IDs configured in different campaigns so that when the user clicks on one of these buttons it starts a web chat. This is working well for buttons present on the page when the page loads but does not work when the button is added to the page via ajax which means that instead of something like this: $(“button”).on(“click”,“#price-match-chat”,(event) => {…}); zcc-sdk is using something like const button = document.getElementById(“#price-match-chat”); if(button != null){button.addEventListener(“click”,(event) => {…});}
So my question: Does zcc-sdk provide a JavaScript function I can call to make it search for IDs again to bind the event handlers to the button that was added via Ajax?