jQuery has a very useful delegate (event delegation) function, which can bind an event handling function to the current and future (dynamically added) elements.
For example, in the following example, after dynamically adding an input text box, I want all text boxes (whether dynamically added or not) to automatically turn to uppercase when they receive focus.