Jquery returning empty on "initialize" and initial "update" calls

Hey there bubblers,

I’m taking my first foray into plugin development, but I’m running into an issue. From my plugin’s element’s initialize and update calls, I’m attempting to use jquery to reference another element on the page by id $("#ID"). Unfortunately, it seems like my plugin’s element is loaded before the other elements on the page, so the jquery call returns an empty object.

Is there a way to trigger a callback when the element in question is loaded so that I can access it? If not, is there a way to trigger a callback on page load?

Hi! Avoid using the Bubble-provided initialize function, create an action of your own called “initialize” and run it whenever you want, like under an Page is loaded event or Do when condition is true -> Element X is visible (needed less often, but sometimes necessary).