Binding events to buttons in a dialog

Binding events to buttons in a dialog


What is a good programming pattern for binding an event to buttons that are dynamically loaded via a dialog? 

For example, I'd like to bind the 'click' event to a dialog submit button when the site loads. Since the button is not yet present in the DOM, the binding never occurs. 

Is there a defacto standard for managing this type of problem with this framework?