Add class attribute to html button in repeater

I need to add a class attribute and a data attribute to a button on my page in a repeater in order for a third party service to show a booking calendar when you click the button. I was wondering if anyone has found a work around for adding class attributes to html in a repeater. I was hoping to use the embedded html element but you can’t put those in a repeater. I even tried adding a script tag to update the the class of the buttons, but it seems that the scripts in load in a way that makes it so you can’t do that. I am comfortable with html-css-js so any code solutions would be appreciated too. Thanks for your help!

Couldn´t you use wix-fetch and prepare all the data necessary and then do a POST or GET?

Hi,
As you can see from the button documentation , there’s no option to edit the HTML of it. However, there’s an option to edit the HTML code of text , if it helps. Note that in order to add it to a repeater item, you should use the $w variable of the onItemReady .

Best,
Tal.