How to accesss modal jquery dialog after it is generated?

How to accesss modal jquery dialog after it is generated?

I have a webpage which uses jQuery UI Dialog to generate a modal form. The jQuery js code itself is generated by a database. So I have a "double-dynamically-generated" form and no access to the sourcecode. So how can I access elements of this form after they are generated? My idea was to use on() or delegate(), but my form elements should have already changed when the form is loaded. Not on 'click' or something else.