I am wondering which is the best way to use a common function for element events.
For example, i have a form that loads on the page, then on that same page i have an ajax window that opens that has other forms and i want to assign the same submit event function for both forms. Because i need to add the events to the forms in the ajax window programmatically i want to create a generic function which i can assign to multiple forms. Is this the best way to do it? http://jsfiddle.net/LWUX3/ Steve
