Hi Kris, do you have a clone link you can share of just the component you’re trying to create?
It’ll be easier then to give some input…
There are a couple of ways you could achieve this I think.
Are you putting the component inside a custom_html form?
This way you can edit the custom_html property and put the js functions inside the script tags…
then… do a self.call_js(‘my_js_function’, arg1, arg2, arg3)
You’d call this js function in the form.show event - this way you’ll be accessing the correct dom element.
I think that this is a very clean example of adding js to a component which might help. https://anvil.works/library/slider